cleanup, docs
This commit is contained in:
@@ -20,10 +20,9 @@ Each non-empty line is split on the first `separator`. Lines without the separat
|
||||
|
||||
Example:
|
||||
|
||||
```uce
|
||||
StringMap cfg = split_kv("host = localhost\nport = 8080");
|
||||
// cfg["host"] == "localhost"
|
||||
// cfg["port"] == "8080"
|
||||
```
|
||||
|
||||
This is useful for small config files, metadata blocks, and tests that need predictable key/value parsing.
|
||||
|
||||
:example
|
||||
StringMap values = split_kv("name=Ada\nrole=admin");
|
||||
print(values["name"], "\n");
|
||||
|
||||
Reference in New Issue
Block a user