mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-10 21:58:48 +01:00
Merge pull request #703 from mwilmsm/master
Cleaned up some documentation typos. -mw
This commit is contained in:
@ -107,7 +107,7 @@ of the body, like so:
|
||||
System.print("Hi, " + first + " " + last + "!")
|
||||
}
|
||||
|
||||
Here we're passing a function to `greet` that takes two parameters, `first` and
|
||||
Here we're passing a function to `callMe` that takes two parameters, `first` and
|
||||
`last`. They are passed to the function when it's called:
|
||||
|
||||
:::wren
|
||||
|
||||
@ -67,7 +67,7 @@ use `add` to append a single item to the end:
|
||||
|
||||
:::wren
|
||||
hirsute.add("goatee")
|
||||
System.print(hirsute.count) //> 4
|
||||
System.print(hirsute.count) //> 5
|
||||
|
||||
You can insert a new element at a specific position using `insert`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user