summaryrefslogtreecommitdiffstats
path: root/llvm/docs/YamlIO.rst
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
commit539b1df7c372a2ba016ec294923697b2ab05be89 (patch)
treec1a70892113318ac06b7e7cb8954b11ccc06ae01 /llvm/docs/YamlIO.rst
parent5fcef77b2e5b27fd3a8546ce903d9b4d5d1bd0a7 (diff)
downloadbcm5719-llvm-539b1df7c372a2ba016ec294923697b2ab05be89.tar.gz
bcm5719-llvm-539b1df7c372a2ba016ec294923697b2ab05be89.zip
Typo fixes.
llvm-svn: 190569
Diffstat (limited to 'llvm/docs/YamlIO.rst')
-rw-r--r--llvm/docs/YamlIO.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/YamlIO.rst b/llvm/docs/YamlIO.rst
index 59a48ba9512..79e07cd9897 100644
--- a/llvm/docs/YamlIO.rst
+++ b/llvm/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;
OpenPOWER on IntegriCloud