Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment