rust - hello-world
This commit is contained in:
5
rust/hello-world/src/lib.rs
Normal file
5
rust/hello-world/src/lib.rs
Normal 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!"
|
||||
}
|
Reference in New Issue
Block a user