diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-08-21 22:09:29 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-08-21 22:09:29 +0200 |
commit | 27514d58573ce1f844af4ea60afa72c7f58f1cd7 (patch) | |
tree | 4b16c31f73cb72435d03d5e105261143f8ca135f /.trash/How to return from a function.md | |
parent | 22675cd8dc75d8b8d4b0f818f5b093efbc364802 (diff) |
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 |