diff options
author | Vedant Kumar <vsk@apple.com> | 2016-02-04 20:42:43 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-02-04 20:42:43 +0000 |
commit | 4de5cb8aef523d9aebeff01759ef35f545e54168 (patch) | |
tree | 586d11b78066b1ed07bcf34c97f7aeeaa4a54930 /llvm/docs/YamlIO.rst | |
parent | c2fab48145623c97d1658c35acc37b95919b1e27 (diff) | |
download | bcm5719-llvm-4de5cb8aef523d9aebeff01759ef35f545e54168.tar.gz bcm5719-llvm-4de5cb8aef523d9aebeff01759ef35f545e54168.zip |
[docs] Fix typo in YamlIO.rst
Patch by Mario Lang!
llvm-svn: 259825
Diffstat (limited to 'llvm/docs/YamlIO.rst')
-rw-r--r-- | llvm/docs/YamlIO.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/docs/YamlIO.rst b/llvm/docs/YamlIO.rst index f0baeb4c69d..04e63fac6a4 100644 --- a/llvm/docs/YamlIO.rst +++ b/llvm/docs/YamlIO.rst @@ -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(); |