From bf2e7b593e38ab7de4e43916ea7fa4aff928cfb3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 20 May 2013 22:39:48 +0000 Subject: [PATCH] [docs] Minor doc tweaks. llvm-svn: 182324 --- llvm/docs/YamlIO.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/docs/YamlIO.rst b/llvm/docs/YamlIO.rst index ac50292f..ded1728 100644 --- a/llvm/docs/YamlIO.rst +++ b/llvm/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; -- 2.7.4