Odak modu

Rust Fundamentals

Expressions:Return Expressions

The "return" statement exits the current function or scope and returns a value to the called statement. If there is no return, type () is returned (parenthesized structure meaning no value return).

You can find detailed further information from Rust Official documentation:

https://doc.rust-lang.org/std/keyword.return.html 

For a detailed explanation of Return Expressions, you can watch this video as an additional resource:

https://www.youtube.com/watch?v=b-C5HbiRUGs 

Yorumlar

Yorum yapabilmek için derse kayıt olmalısın!