Skip to content

Commit

Permalink
Fix mistakes in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jul 6, 2024
1 parent db80325 commit 888dc61
Show file tree
Hide file tree
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
Expand Up @@ -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)
}
Expand All @@ -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)
}
Expand Down Expand Up @@ -138,7 +138,7 @@ Here is an example of this:

```rue
fun main() -> Int {
let doubler = fn(2);
let doubler = multiplier(2);
doubler(1000)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/types/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
}
Expand Down

0 comments on commit 888dc61

Please sign in to comment.