rust - hello-world

This commit is contained in:
2018-09-16 18:51:58 -04:00
parent 64d4b70158
commit 3a6122e886
6 changed files with 189 additions and 0 deletions

View File

@ -0,0 +1,5 @@
// The &'static here means the return type has a static lifetime.
// This is a Rust feature that you don't need to worry about now.
pub fn hello() -> &'static str {
"Hello, World!"
}