From: Vedant Kumar Date: Thu, 4 Feb 2016 20:42:43 +0000 (+0000) Subject: [docs] Fix typo in YamlIO.rst X-Git-Tag: llvmorg-3.9.0-rc1~15075 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4de5cb8aef523d9aebeff01759ef35f545e54168;p=platform%2Fupstream%2Fllvm.git [docs] Fix typo in YamlIO.rst Patch by Mario Lang! llvm-svn: 259825 --- diff --git a/llvm/docs/YamlIO.rst b/llvm/docs/YamlIO.rst index f0baeb4..04e63fa 100644 --- a/llvm/docs/YamlIO.rst +++ b/llvm/docs/YamlIO.rst @@ -456,10 +456,11 @@ looks like: template <> struct ScalarTraits { - 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();