cleanup, docs
This commit is contained in:
@@ -20,6 +20,6 @@ return value : none
|
||||
:content
|
||||
Assigns a new value, forwarding through references when possible. String, pointer, and f64 overloads set scalar nodes. `set(DValue)` copies the source's current type and payload. `set(StringMap)` creates a map-shaped value with each string entry as a child.
|
||||
|
||||
```cpp
|
||||
DValue user; user["name"].set("Ada"); user["score"].set(9.5);
|
||||
```
|
||||
|
||||
:example
|
||||
print("DValue::set example\n");
|
||||
|
||||
Reference in New Issue
Block a user