New Fetch
This commit is contained in:
7
rust/hello-world/.gitignore
vendored
Normal file
7
rust/hello-world/.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Generated by Cargo
|
||||
# will have compiled files and executables
|
||||
/target/
|
||||
|
||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
|
||||
Cargo.lock
|
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 {
|
||||
"Goodbye, World!"
|
||||
}
|
Reference in New Issue
Block a user