[llvm] r259825 - [docs] Fix typo in YamlIO.rst

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 12:42:43 PST 2016


Author: vedantk
Date: Thu Feb  4 14:42:43 2016
New Revision: 259825

URL: http://llvm.org/viewvc/llvm-project?rev=259825&view=rev
Log:
[docs] Fix typo in YamlIO.rst

Patch by Mario Lang!

Modified:
    llvm/trunk/docs/YamlIO.rst

Modified: llvm/trunk/docs/YamlIO.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/YamlIO.rst?rev=259825&r1=259824&r2=259825&view=diff
==============================================================================
--- llvm/trunk/docs/YamlIO.rst (original)
+++ llvm/trunk/docs/YamlIO.rst Thu Feb  4 14:42:43 2016
@@ -456,10 +456,11 @@ looks like:
 
     template <>
     struct ScalarTraits<MyCustomType> {
-      static void output(const T &value, void*, llvm::raw_ostream &out) {
+      static void output(const MyCustomType &value, void*,
+                         llvm::raw_ostream &out) {
         out << value;  // do custom formatting here
       }
-      static StringRef input(StringRef scalar, void*, T &value) {
+      static StringRef input(StringRef scalar, void*, MyCustomType &value) {
         // do custom parsing here.  Return the empty string on success,
         // or an error message on failure.
         return StringRef();




More information about the llvm-commits mailing list