chore(markdown): MD010 Hard tabs
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
This commit is contained in:
parent
19ecb1701e
commit
96a91e988d
@ -17,8 +17,8 @@ parses this config file:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[server]
|
[server]
|
||||||
host = "www.example.com"
|
host = "www.example.com"
|
||||||
port = [ 8080, 8181, 8282 ]
|
port = [ 8080, 8181, 8282 ]
|
||||||
```
|
```
|
||||||
|
|
||||||
The steps for getting values from our file is usually :
|
The steps for getting values from our file is usually :
|
||||||
@ -158,8 +158,8 @@ For example:
|
|||||||
```c
|
```c
|
||||||
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 and timestamp types only */
|
free(host.u.s); /* FREE applies to string and timestamp types only */
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user