summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-09-12 01:43:21 +0000
committerRui Ueyama <ruiu@google.com>2013-09-12 01:43:21 +0000
commit8f2f86f8899fcd98405005dbd6195ffa606f5d15 (patch)
tree342918a0896fc137020fbb53ce8e322c0b995858 /docs
parent180df81c8f2a30abda712a0a99149c6b9a4241aa (diff)
downloadllvm-8f2f86f8899fcd98405005dbd6195ffa606f5d15.tar.gz
llvm-8f2f86f8899fcd98405005dbd6195ffa606f5d15.tar.bz2
llvm-8f2f86f8899fcd98405005dbd6195ffa606f5d15.tar.xz
Typo fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/YamlIO.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/YamlIO.rst b/docs/YamlIO.rst
index 59a48ba951..79e07cd989 100644
--- a/docs/YamlIO.rst
+++ b/docs/YamlIO.rst
@@ -646,7 +646,7 @@ llvm::yaml::SequenceTraits on T and implement two methods:
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;". For instance:
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;