Skip to content

Commit

Permalink
Update docs/basic_syntax/functions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Maksym Hazevych <dpadar@protonmail.com>
  • Loading branch information
Mte90 and mks-h authored Sep 19, 2024
1 parent 7d99fcc commit 7aeb657
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/basic_syntax/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ fun failable(): Num? {
return 1
}
```

Note that you cannot force a function to become failable by simply appending the `?` to the return type. The `?` can (and must) only be used in a function declaration, if the function is known to be failable.
Expand Down

0 comments on commit 7aeb657

Please sign in to comment.