Merge pull request #148 from sneakypete81/patch-1

Fix typo in error message
This commit is contained in:
Toru Niina
2021-01-31 14:26:02 +09:00
committed by GitHub

View File

@@ -930,7 +930,7 @@ parse_key(location& loc)
return ok(std::make_pair(std::vector<key>(1, smpl.unwrap().first),
smpl.unwrap().second));
}
return err(format_underline("toml::parse_key: an invalid key appeaed.",
return err(format_underline("toml::parse_key: an invalid key appeared.",
{{source_location(loc), "is not a valid key"}}, {
"bare keys : non-empty strings composed only of [A-Za-z0-9_-].",
"quoted keys: same as \"basic strings\" or 'literal strings'.",