Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 411 Bytes

nested.md

File metadata and controls

22 lines (16 loc) · 411 Bytes

Out

See the main fn

// test/nested.rs

fn main() {
    let stdout = stdout();
    let message = String::from("Hello fellow Rustaceans!");
    let width = message.chars().count();

    let mut writer = BufWriter::new(stdout.lock());
    say(&message, width, &mut writer).unwrap();
}

Take note of this special line

    let message = String::from("Hello fellow Rustaceans!");