rust-lang / ferris-says

A Rust flavored implementation of `cowsay`
https://crates.io/crates/ferris-says
Apache License 2.0
194 stars 34 forks source link

Correct example for ferris_says on mac #39

Open wilfredvaz opened 1 year ago

wilfredvaz commented 1 year ago

The correct ferris_says for mac

refer below

extern crate ferris_says;

use ferris_says::say; use std::io::{ stdout, BufWriter };

fn main() { let width = 24;

let mut writer = BufWriter::new(stdout());
say("Hello fellow Rustaceans!", width, &mut writer).unwrap();

}