~irimi1/learning-rust

ref: 62faacb767e47f5d87fbd5ff36eee2e3ecbb7d5a learning-rust/projects/minigrep/src/main.rs -rw-r--r-- 216 bytes
62faacb7Manuel Groß minigrep: Add poem from listing 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
use std::env;

fn main() {
    let args: Vec<String> = env::args().collect();

    let query = &args[1];
    let filename = &args[2];

    println!("Searching for {}", query);
    println!("In file {}", filename);
}