Skip to content

Commit

Permalink
chore: fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Feb 16, 2019
1 parent 2dd0a78 commit d8707d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ toml11 v2.1.0 enables you to serialize data into toml format.
const auto data = toml::table{{"foo", 42}, {"bar", "baz"}};

const std::string serial = toml::format(data);
assert(serial == "bar = \"baz\"\nfoo = 42");
// serial == "{bar=\"baz\",foo=42}"

std::cout << data << std::endl;
// bar = "baz"
Expand Down Expand Up @@ -620,7 +620,7 @@ The toml types (can be used as `toml::*` in this library) and corresponding `enu
| LocalDatetime | `toml::local_datetime` | `toml::value_t::LocalDatetime` |
| OffsetDatetime | `toml::offset_datetime` | `toml::value_t::offsetDatetime` |
| Array | `std::vector<toml::value>` | `toml::value_t::Array` |
| Table | `std::unordered_map<std::string, toml::key>` | `toml::value_t::Table` |
| Table | `std::unordered_map<toml::key, toml::value>` | `toml::value_t::Table` |

`toml::string` is effectively the same as `std::string` but has an additional
flag that represents a kind of a string, `string_t::basic` and `string_t::literal`.
Expand Down

0 comments on commit d8707d5

Please sign in to comment.