From 3d300fe2856d2f2cea8932304906a4ed3b9e8473 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 28 Jan 2014 06:20:56 +0000 Subject: [PATCH] Fix always-false conditional thinko in documentation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200289 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LanguageExtensions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/LanguageExtensions.rst b/docs/LanguageExtensions.rst index d994479da6..0a90bb7e7e 100644 --- a/docs/LanguageExtensions.rst +++ b/docs/LanguageExtensions.rst @@ -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); -- 2.40.0