From 482878fcd22ad04dcd3a912fcb52fcaa83fcc29a Mon Sep 17 00:00:00 2001 From: Chad Skeeters Date: Mon, 19 Feb 2024 18:12:22 -0600 Subject: [PATCH] fix: uses tbl variable name rather than arr in table.get documentation (#221) --- include/toml++/impl/table.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/toml++/impl/table.hpp b/include/toml++/impl/table.hpp index edb7316..b182bc5 100644 --- a/include/toml++/impl/table.hpp +++ b/include/toml++/impl/table.hpp @@ -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 ///