You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ownership means values get passed and when the value is no longer needed it is dropped
borrowing is passing by reference
String -> &String -> &str
Value Reference String Slice?
use std::io;fnmain(){println!("Hi, what's your name? ");letmut name = String::new();
io::stdin().read_line(&mut name).unwrap();println!("Hello {}", name);}
The text was updated successfully, but these errors were encountered:
https://github.com/prophen/intro-to-rust/blob/nikema's-notes/exercises/04.md
The text was updated successfully, but these errors were encountered: