Hello World
Level: easy (score: 2)
💡 Individual exercises are great, but nothing beats building a real-world app with Rust.
Check out our Rust Intro Cohort Program!
Update the hello_world
function so it returns the exact String
"Hello, World!"
, with correct capitalization and punctuation.
fn hello_world() -> String {
// add your code here to return the string "Hello, World!"
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_hello_world() {
assert_eq!(hello_world(), "Hello, World!");
}
}