From f7fde945e69256c9e6e773e9d03077ace18e0874 Mon Sep 17 00:00:00 2001 From: CK Tan Date: Thu, 3 Dec 2020 23:16:55 -0800 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dff30d6..d07d750 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ parses this config file: The steps for getting values from our file is usually : 1. Parse the whole TOML file. -2. Get a single table from the file. +2. Traverse and locate a table in TOML. 3. Find a value from the table. -4. Then, free up that memory if needed. +4. Free up allocated memory. Below is an example of parsing the values from the example table. @@ -46,7 +46,7 @@ if (0 == conf) { conf = toml_parse("A null terminated string that is TOML\0", errbuf, sizeof(errbuf)); ``` -2. Get a single table from the file. +2. Traverse and locate a table in toml. ```c toml_table_t* server; @@ -79,7 +79,7 @@ printf("port %d\n", port.u.i); ``` -4. Then, free up that memory if needed. +4. Free up allocated memory. ```c /* Use `toml_free` on the table returned from `toml_parse[_file]`.