Skip to content

Commit

Permalink
chore: update example in readme
Browse files Browse the repository at this point in the history
Partially inspired by #44.
  • Loading branch information
BD103 committed Jan 10, 2024
1 parent ee49038 commit 898bdf7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ extern crate ferris_says;
The following bit of code will write the byte string to STDOUT

```rust
extern crate ferris_says;

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

fn main() {
let out = b"Hello fellow Rustaceans!";
let out = "Hello fellow Rustaceans!";
let width = 24;

let mut writer = BufWriter::new(stdout());
Expand Down

0 comments on commit 898bdf7

Please sign in to comment.