diff options
Diffstat (limited to '.trash/How to return from a function.md')
-rw-r--r-- | .trash/How to return from a function.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.trash/How to return from a function.md b/.trash/How to return from a function.md new file mode 100644 index 0000000..095cea0 --- /dev/null +++ b/.trash/How to return from a function.md @@ -0,0 +1,5 @@ +[[Adding a semicolon to the end of a line turns it into a statement]] + +In Rust we can return from a function with simply an expression at the end of the scope. + +The `return` keyword is mostly used for returning early.
\ No newline at end of file |