Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Contains Check

Create a string "I love Rust programming" and check if it contains the word "Rust". Print true if it does, or false if it doesn't.

Expected output:

text
true

Hints:

  • Use .contains("Rust") to check if the text is inside the string
  • println!("{}", some_bool) prints true or false
rust
fn main() {
}