From cbbdc2ab01447ae5e6f15b56773d9b4c83c35035 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Thu, 18 May 2017 11:57:49 +0900 Subject: [PATCH] add missing example toml data to README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e90dabb..c4d2af5 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,13 @@ If there are syntax error in the toml file, Then you can obtain the various value from the `data` using `toml::get` function. +```toml +answer = 42 +pi = 3.14 +numbers = [1,2,3] +time = 1979-05-27T07:32:00Z +``` + ``` cpp const auto answer = toml::get(data.at("answer")); const auto pi = toml::get(data.at("pi"));