Update README.md

This commit is contained in:
CK Tan 2020-11-13 13:14:16 -08:00 committed by GitHub
parent 577e48e03f
commit 5fb977508a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@ For example:
toml_datum_t host = toml_string_in(tab, "host"); toml_datum_t host = toml_string_in(tab, "host");
if (host.ok) { if (host.ok) {
printf("host: %s\n", host.u.s); printf("host: %s\n", host.u.s);
free(host.u.s); /* FREE applies to string type only */ free(host.u.s); /* FREE applies to string and timestamp types only */
} }
``` ```