chore(markdown): MD031 Fenced code blocks should be surrounded by blank lines
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
This commit is contained in:
parent
8085b2728d
commit
19ecb1701e
@ -57,6 +57,7 @@ A `legacy` and `onesix` launchers are available.
|
|||||||
* `onesix` can handle launching any Minecraft version, at the cost of some extra features `legacy` enables (custom window icon and title).
|
* `onesix` can handle launching any Minecraft version, at the cost of some extra features `legacy` enables (custom window icon and title).
|
||||||
|
|
||||||
Example (some parts have been censored):
|
Example (some parts have been censored):
|
||||||
|
|
||||||
```
|
```
|
||||||
mod legacyjavafixer-1.0
|
mod legacyjavafixer-1.0
|
||||||
mainClass net.minecraft.launchwrapper.Launch
|
mainClass net.minecraft.launchwrapper.Launch
|
||||||
|
@ -102,6 +102,7 @@ general, all access functions on tables are named `toml_*_in(...)`.
|
|||||||
|
|
||||||
In the normal case, you know the key and its content type, and retrievals can be done
|
In the normal case, you know the key and its content type, and retrievals can be done
|
||||||
using one of these functions:
|
using one of these functions:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
toml_string_in(tab, key);
|
toml_string_in(tab, key);
|
||||||
toml_bool_in(tab, key);
|
toml_bool_in(tab, key);
|
||||||
@ -113,6 +114,7 @@ toml_array_in(tab, key);
|
|||||||
```
|
```
|
||||||
|
|
||||||
You can also interrogate the keys in a table using an integer index:
|
You can also interrogate the keys in a table using an integer index:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
toml_table_t* tab = toml_parse_file(...);
|
toml_table_t* tab = toml_parse_file(...);
|
||||||
for (int i = 0; ; i++) {
|
for (int i = 0; ; i++) {
|
||||||
@ -127,11 +129,13 @@ for (int i = 0; ; i++) {
|
|||||||
TOML arrays can be deref-ed using integer indices. In general, all access methods on arrays are named `toml_*_at()`.
|
TOML arrays can be deref-ed using integer indices. In general, all access methods on arrays are named `toml_*_at()`.
|
||||||
|
|
||||||
To obtain the size of an array:
|
To obtain the size of an array:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
int size = toml_array_nelem(arr);
|
int size = toml_array_nelem(arr);
|
||||||
```
|
```
|
||||||
|
|
||||||
To obtain the content of an array, use a valid index and call one of these functions:
|
To obtain the content of an array, use a valid index and call one of these functions:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
toml_string_at(arr, idx);
|
toml_string_at(arr, idx);
|
||||||
toml_bool_at(arr, idx);
|
toml_bool_at(arr, idx);
|
||||||
@ -150,6 +154,7 @@ call was successful. If so, you may proceed to read the value
|
|||||||
corresponding to the type of the content.
|
corresponding to the type of the content.
|
||||||
|
|
||||||
For example:
|
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) {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# How to import
|
# How to import
|
||||||
|
|
||||||
To import with flakes use
|
To import with flakes use
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
|
Loading…
Reference in New Issue
Block a user