fix: add missing code block marker in list docs and simplify parens increment in compiler
- Add missing `:::wren` code block marker before the `removeAt` example in the list documentation to ensure proper syntax highlighting. - Simplify the `parens` array increment in `readString` by combining the assignment and post-increment into a single expression.
This commit is contained in:
@@ -71,6 +71,7 @@ are shifted up to fill in where the removed element was.
|
||||
|
||||
Returns the removed item.
|
||||
|
||||
:::wren
|
||||
System.print(["a", "b", "c"].removeAt(1)) //> b
|
||||
|
||||
It is a runtime error if the index is not an integer or is out of bounds.
|
||||
|
||||
Reference in New Issue
Block a user