Skip to content

Commit

Permalink
Removed incorrect coercion information from ink_JSON_runtime_format.md
Browse files Browse the repository at this point in the history
Don't know where I thought I saw strings getting cast to bools, but it's not in the source code.
  • Loading branch information
BeowulfDragon committed Jul 24, 2024
1 parent cdd9372 commit b80effe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Documentation/ink_JSON_runtime_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ Diverts and variable pointers are not a part of this hierarchy.
Coercions work as follows:
* `bool` - `bool` is *always* coerced to another type, usually `int`.
* `int` or `float`: `true` becomes `1` and `false` becomes `0`.
* `string`: `true` becomes `"true"` and `false` becomes `"false"`.
* `int`
* `bool`: `0` becomes `false`, all other values become `true`.
* `float`: Remains the same value, but a `float`.
Expand Down

0 comments on commit b80effe

Please sign in to comment.