summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-05-20 22:39:48 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-05-20 22:39:48 +0000
commitff2515ef2cb17f32b8a68f6b8b9719365f068295 (patch)
tree38280b1c65be01b657b34249103d629f79c5863b /docs
parent3b1040c703c5e76b85b4431f4c84ccc4aa9f8508 (diff)
downloadllvm-ff2515ef2cb17f32b8a68f6b8b9719365f068295.tar.gz
llvm-ff2515ef2cb17f32b8a68f6b8b9719365f068295.tar.bz2
llvm-ff2515ef2cb17f32b8a68f6b8b9719365f068295.tar.xz
[docs] Minor doc tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182324 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 ac50292f4a..ded17288af 100644
--- a/docs/YamlIO.rst
+++ b/docs/YamlIO.rst
@@ -109,7 +109,7 @@ ScalarEnumerationTraits on that type and define the enumeration() method:
As with all YAML I/O template specializations, the ScalarEnumerationTraits is used for
both reading and writing YAML. That is, the mapping between in-memory enum
-values and the YAML string representation is only in place.
+values and the YAML string representation is only in one place.
This assures that the code for writing and parsing of YAML stays in sync.
To specify a YAML mappings, you define a specialization on
@@ -533,7 +533,7 @@ coordinates into polar when reading YAML.
y(polar.distance * sin(polar.angle)) {
}
Polar denormalize(IO &) {
- return Polar(sqrt(x*x+y*y, arctan(x,y));
+ return Polar(sqrt(x*x+y*y), arctan(x,y));
}
float x;