[docs] Fix typo in the example code in ProgrammersManual.
authorHsiangkai Wang <hsiangkai@google.com>
Tue, 18 Jan 2022 07:44:27 +0000 (07:44 +0000)
committerHsiangkai Wang <hsiangkai@google.com>
Thu, 20 Jan 2022 01:25:49 +0000 (01:25 +0000)
Differential Revision: https://reviews.llvm.org/D117665

llvm/docs/ProgrammersManual.rst

index 074ec3b..630893a 100644 (file)
@@ -585,7 +585,7 @@ semantics.  For example:
       // On error, return the Error value.
       return Err;
     // On success, use MB.
-    return processContent(MB->getBuffer());
+    return processBuffer(MB->getBuffer());
   }
 
 This third form works with any type that can be assigned to from ``T&&``. This