Just started learning Rust and i just love it. I wanted to notify about a small code thats giving error
Reference url in question: Getting started - Rust Programming Language
Reference code in question:
fn main() {
let stdout = stdout();
.....
say(message.as_bytes(), width, &mut writer).unwrap();
}
seems like ferris say function definition has changed
I got it working by referencing it instead of converting to bytes
say(&message, width, &mut writer).unwrap();