[llvm] r190569 - Typo fixes.
Rui Ueyama
ruiu at google.com
Wed Sep 11 18:43:21 PDT 2013
Author: ruiu
Date: Wed Sep 11 20:43:21 2013
New Revision: 190569
URL: http://llvm.org/viewvc/llvm-project?rev=190569&view=rev
Log:
Typo fixes.
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=190569&r1=190568&r2=190569&view=diff
==============================================================================
--- llvm/trunk/docs/YamlIO.rst (original)
+++ llvm/trunk/docs/YamlIO.rst Wed Sep 11 20:43:21 2013
@@ -646,7 +646,7 @@ llvm::yaml::SequenceTraits on T and impl
template <>
struct SequenceTraits<MySeq> {
static size_t size(IO &io, MySeq &list) { ... }
- static MySeqEl element(IO &io, MySeq &list, size_t index) { ... }
+ static MySeqEl &element(IO &io, MySeq &list, size_t index) { ... }
};
The size() method returns how many elements are currently in your sequence.
@@ -669,7 +669,7 @@ add "static const bool flow = true;". F
template <>
struct SequenceTraits<MyList> {
static size_t size(IO &io, MyList &list) { ... }
- static MyListEl element(IO &io, MyList &list, size_t index) { ... }
+ static MyListEl &element(IO &io, MyList &list, size_t index) { ... }
// The existence of this member causes YAML I/O to use a flow sequence
static const bool flow = true;
More information about the llvm-commits
mailing list