[llvm] r182324 - [docs] Minor doc tweaks.
Daniel Dunbar
daniel at zuster.org
Mon May 20 15:39:48 PDT 2013
Author: ddunbar
Date: Mon May 20 17:39:48 2013
New Revision: 182324
URL: http://llvm.org/viewvc/llvm-project?rev=182324&view=rev
Log:
[docs] Minor doc tweaks.
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=182324&r1=182323&r2=182324&view=diff
==============================================================================
--- llvm/trunk/docs/YamlIO.rst (original)
+++ llvm/trunk/docs/YamlIO.rst Mon May 20 17:39:48 2013
@@ -109,7 +109,7 @@ ScalarEnumerationTraits on that type and
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;
More information about the llvm-commits
mailing list