Skip to content

Commit

Permalink
docs: update outdated library part in README
Browse files Browse the repository at this point in the history
The latest version is 0.3.1, but the library usage is for 0.2

To avoid leaving out update version in README, I add the way of cargo command.
  • Loading branch information
hms5232 authored Oct 21, 2023
1 parent 570d876 commit 03c59fa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ Put the following in your `Cargo.toml`:

```toml
[dependencies]
ferris-says = "0.2"
ferris-says = "0.3.1"
```

or run:

```sh
cargo add ferris-says
```

Then import the crate with:
Expand All @@ -32,7 +38,7 @@ use ferris_says::say;
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 03c59fa

Please sign in to comment.