Fix always-false conditional thinko in documentation.

llvm-svn: 200289
This commit is contained in:
Nick Lewycky 2014-01-28 06:20:56 +00:00
parent 4e703bcecd
commit b05a8440cc

View 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);