r200289 - Fix always-false conditional thinko in documentation.

Nick Lewycky nicholas at mxc.ca
Mon Jan 27 22:20:56 PST 2014


Author: nicholas
Date: Tue Jan 28 00:20:56 2014
New Revision: 200289

URL: http://llvm.org/viewvc/llvm-project?rev=200289&view=rev
Log:
Fix always-false conditional thinko in documentation.

Modified:
    cfe/trunk/docs/LanguageExtensions.rst

Modified: cfe/trunk/docs/LanguageExtensions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.rst?rev=200289&r1=200288&r2=200289&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.rst (original)
+++ cfe/trunk/docs/LanguageExtensions.rst Tue Jan 28 00:20:56 2014
@@ -1432,7 +1432,7 @@ available in C.
 .. code-block:: c++
 
   int isdigit(int c);
-  int isdigit(int c) __attribute__((enable_if(c <= -1 && c > 255, "chosen when 'c' is out of range"))) __attribute__((unavailable("'c' must have the value of an unsigned char or EOF")));
+  int isdigit(int c) __attribute__((enable_if(c <= -1 || c > 255, "chosen when 'c' is out of range"))) __attribute__((unavailable("'c' must have the value of an unsigned char or EOF")));
   
   void foo(char c) {
     isdigit(c);





More information about the cfe-commits mailing list