]> granicus.if.org Git - clang/commitdiff
Fix always-false conditional thinko in documentation.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 28 Jan 2014 06:20:56 +0000 (06:20 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 28 Jan 2014 06:20:56 +0000 (06:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200289 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LanguageExtensions.rst

index d994479da65c6d69e1f1070c7f386cf27ce920a3..0a90bb7e7e9583b8f3340c306fbfc0d3960aeb05 100644 (file)
@@ -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);