Created
April 23, 2019 19:01
-
-
Save rust-play/207e2a3995f485f217125cefa74f1ffd to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let s1 = "hello"; | |
let s2 = String::from("hello"); | |
let s3 = String::from("hello"); | |
println!("s1 == s2 => {}", s1 == s2); | |
println!("s1 == s3 => {}", s1 == s3); | |
println!("s2 == s3 => {}", s2 == s3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment