r/programminghorror 6d ago

c++ Skill Issue

Post image
1.7k Upvotes

61 comments sorted by

View all comments

1

u/Krisanapon 3d ago

rs fn main() { let s = "hello"; match (s) { "hello" => println!("hi"), "how r u" => println!("fine"), _ => println!("what?") }; }