[libc-commits] [libc] d92b585 - [libc][obvious] fix phrasing in assert comment

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Apr 7 11:59:07 PDT 2023


Author: Michael Jones
Date: 2023-04-07T11:51:44-07:00
New Revision: d92b5852595122a26ba062f1747def2e3f1d51b2

URL: https://github.com/llvm/llvm-project/commit/d92b5852595122a26ba062f1747def2e3f1d51b2
DIFF: https://github.com/llvm/llvm-project/commit/d92b5852595122a26ba062f1747def2e3f1d51b2.diff

LOG: [libc][obvious] fix phrasing in assert comment

Added: 
    

Modified: 
    libc/src/assert/assert.h

Removed: 
    


################################################################################
diff  --git a/libc/src/assert/assert.h b/libc/src/assert/assert.h
index 46cfe3befedc7..71b7e56f9cd52 100644
--- a/libc/src/assert/assert.h
+++ b/libc/src/assert/assert.h
@@ -8,9 +8,9 @@
 
 #include "src/assert/__assert_fail.h"
 
-// There is no header guard here since assert is intended to be able to be
-// able to be included multiple times with NDEBUG defined 
diff erently, causing
-// 
diff erent behavior.
+// There is no header guard here since assert is intended to capable of being
+// included multiple times with NDEBUG defined 
diff erently, causing 
diff erent
+// behavior.
 
 #undef assert
 
@@ -18,6 +18,7 @@
 #define assert(e) (void)0
 #else
 #define assert(e)                                                              \
-  ((e) ? (void)0 :                                                             \
-    __llvm_libc::__assert_fail(#e, __FILE__, __LINE__, __PRETTY_FUNCTION__))
+  ((e) ? (void)0                                                               \
+       : __llvm_libc::__assert_fail(#e, __FILE__, __LINE__,                    \
+                                    __PRETTY_FUNCTION__))
 #endif


        


More information about the libc-commits mailing list