Skip to content

Commit

Permalink
updates block and expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
MamboBryan committed Jun 5, 2023
1 parent e39b56d commit 847367f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bits/block_and_expression.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Expression body functions do just that, you can declare what the function should


:::caution
- Expression body functions can only be used with expression like `if`, `when` or `try`, they cannot be used with statements.
- Expression body functions can only be used with expressions such as `if`, `when` or `try`, they cannot be used with statements.
- Removing the return type only works for functions with expression body, block body functions have to specify the return type and use the keyword `return`
:::

Expand Down

0 comments on commit 847367f

Please sign in to comment.