From 27514d58573ce1f844af4ea60afa72c7f58f1cd7 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Thu, 21 Aug 2025 22:09:29 +0200 Subject: vault backup: 2025-08-21 22:09:29 --- .trash/How to return from a function.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .trash/How to return from a function.md (limited to '.trash/How to return from a function.md') 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 -- cgit v1.2.3