From 7fe341ab4a734910299a7b561be77d802e380946 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Sun, 29 Mar 2015 22:55:32 -0500 Subject: [PATCH] Updated How To Parse A Document (Old API) (markdown) --- How-To-Parse-A-Document-(Old-API).md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/How-To-Parse-A-Document-(Old-API).md b/How-To-Parse-A-Document-(Old-API).md index 8413a1b..a65ca14 100644 --- a/How-To-Parse-A-Document-(Old-API).md +++ b/How-To-Parse-A-Document-(Old-API).md @@ -87,7 +87,7 @@ One thing to be keep in mind: reading a map by key (as immediately above) requir ## Optional Keys ## -If you try to access a key that doesn't exist, `yaml-cpp` throws an exception (see [When Something Goes Wrong](https://github.com/jbeder/yaml-cpp/wiki/HowToParseADocument(OldApi)#When_Something_Goes_Wrong) When Something Goes Wrong). If you have optional keys, you it's often easier to use `FindValue` instead of `operator[]`: +If you try to access a key that doesn't exist, `yaml-cpp` throws an exception (see [When Something Goes Wrong](https://github.com/jbeder/yaml-cpp/wiki/How-To-Parse-A-Document-(Old-API)#When_Something_Goes_Wrong). If you have optional keys, you it's often easier to use `FindValue` instead of `operator[]`: ``` YAML::Node doc; // already parsed