mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-20 05:11:20 +00:00
fix: uses tbl variable name rather than arr in table.get documentation (#221)
This commit is contained in:
parent
89406c77e6
commit
482878fcd2
@ -605,10 +605,10 @@ TOML_NAMESPACE_START
|
||||
/// { "a", 42, },
|
||||
/// { "b", "is the meaning of life, apparently." }
|
||||
/// };
|
||||
/// std::cout << R"(node ["a"] exists: )"sv << !!arr.get("a") << "\n";
|
||||
/// std::cout << R"(node ["b"] exists: )"sv << !!arr.get("b") << "\n";
|
||||
/// std::cout << R"(node ["c"] exists: )"sv << !!arr.get("c") << "\n";
|
||||
/// if (auto val = arr.get("a"))
|
||||
/// std::cout << R"(node ["a"] exists: )"sv << !!tbl.get("a") << "\n";
|
||||
/// std::cout << R"(node ["b"] exists: )"sv << !!tbl.get("b") << "\n";
|
||||
/// std::cout << R"(node ["c"] exists: )"sv << !!tbl.get("c") << "\n";
|
||||
/// if (auto val = tbl.get("a"))
|
||||
/// std::cout << R"(node ["a"] was an )"sv << val->type() << "\n";
|
||||
/// \ecpp
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user