phyBrackets created this revision.
phyBrackets requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117195

Files:
  clang/docs/AddressSanitizer.rst


Index: clang/docs/AddressSanitizer.rst
===================================================================
--- clang/docs/AddressSanitizer.rst
+++ clang/docs/AddressSanitizer.rst
@@ -44,9 +44,9 @@
 
     % cat example_UseAfterFree.cc
     int main(int argc, char **argv) {
-      int *array = new int[100];
-      delete [] array;
-      return array[argc];  // BOOM
+      int *array = new int[100] ;
+      delete [] array ;
+      return array[argc] ;  // BOOM
     }
 
     # Compile and link


Index: clang/docs/AddressSanitizer.rst
===================================================================
--- clang/docs/AddressSanitizer.rst
+++ clang/docs/AddressSanitizer.rst
@@ -44,9 +44,9 @@
 
     % cat example_UseAfterFree.cc
     int main(int argc, char **argv) {
-      int *array = new int[100];
-      delete [] array;
-      return array[argc];  // BOOM
+      int *array = new int[100] ;
+      delete [] array ;
+      return array[argc] ;  // BOOM
     }
 
     # Compile and link
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to