Skip to content

Commit

Permalink
Fix mistakes in docs
Browse files Browse the repository at this point in the history
Rigidity committed Jul 6, 2024

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent db80325 commit 888dc61
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/definitions/functions.md
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ A lambda function, also known as an [anonymous function](https://en.wikipedia.or
It's convenient for passing functions as parameters:

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

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

```rue
fun main() -> Int {
let doubler = fn(2);
let doubler = multiplier(2);
doubler(1000)
}
2 changes: 1 addition & 1 deletion docs/types/enums.md
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ fun main() -> Int {
let mode: Mode = locked;
// Now we can check the type
if !(mode is Mode::Locked) {
if mode is Mode::Unlocked {
raise "This isn't possible.";
}

0 comments on commit 888dc61

Please sign in to comment.