doc: fix sample script in README

This commit is contained in:
ToruNiina
2019-07-19 20:13:12 +09:00
parent 138f030b5d
commit 3fe04aff77

View File

@@ -101,7 +101,7 @@ to pass a filename to the `toml::parse` function.
```cpp
const std::string fname("sample.toml");
const toml::table data = toml::parse(fname);
const toml::value data = toml::parse(fname);
```
If it encounters an error while opening a file, it will throw `std::runtime_error`.