fix: uses tbl variable name rather than arr in table.get documentation (#221)

This commit is contained in:
Chad Skeeters 2024-02-19 18:12:22 -06:00 committed by GitHub
parent 89406c77e6
commit 482878fcd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
///