Skip to content

Commit 888dc61

Browse files
committed
Fix mistakes in docs
1 parent db80325 commit 888dc61

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/definitions/functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ A lambda function, also known as an [anonymous function](https://en.wikipedia.or
8787
It's convenient for passing functions as parameters:
8888

8989
```rue
90-
fun main() -> Int {
90+
fun main() -> Int[] {
9191
map([1, 2, 3], fun(num) => num * 100)
9292
}
9393
@@ -106,7 +106,7 @@ You can define generic types on functions which will get replaced when called.
106106
Here's a simple example, building on the previous:
107107

108108
```rue
109-
fun main() -> Int {
109+
fun main() -> Int[] {
110110
map([1, 2, 3], fun(num) => num * 100)
111111
}
112112
@@ -138,7 +138,7 @@ Here is an example of this:
138138

139139
```rue
140140
fun main() -> Int {
141-
let doubler = fn(2);
141+
let doubler = multiplier(2);
142142
doubler(1000)
143143
}
144144

docs/types/enums.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fun main() -> Int {
2222
let mode: Mode = locked;
2323
2424
// Now we can check the type
25-
if !(mode is Mode::Locked) {
25+
if mode is Mode::Unlocked {
2626
raise "This isn't possible.";
2727
}
2828

0 commit comments

Comments
 (0)