Author: Richard Smith
Date: 2021-03-18T20:06:17-07:00
New Revision: d8ab7ad317305d80e405ffdb4f33983f743a6ca2

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

LOG: Fix example in documentation.

Added: 
    

Modified: 
    clang/include/clang/Basic/AttrDocs.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/AttrDocs.td 
b/clang/include/clang/Basic/AttrDocs.td
index 734cf026ae87..7f30c6300e91 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -3057,8 +3057,8 @@ function by writing the attribute after the function type:
 
 .. code-block:: c++
 
-    struct string_view {
-      // ...
+    struct string {
+      // The returned pointer should not outlive ``*this``.
       const char *data() const [[clang::lifetimebound]];
     };
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to