Skip to content

Commit

Permalink
fix: uses tbl variable name rather than arr in table.get documentation (
Browse files Browse the repository at this point in the history
  • Loading branch information
cskeeters authored Feb 20, 2024
1 parent 89406c7 commit 482878f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/toml++/impl/table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 482878f

Please sign in to comment.