From 03c59fabd75bf4dd7ded042f775f98187aae2982 Mon Sep 17 00:00:00 2001 From: hms5232 <43672033+hms5232@users.noreply.github.com> Date: Sat, 21 Oct 2023 20:08:58 +0800 Subject: [PATCH] docs: update outdated library part in README 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. --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 302264d..bda0fc2 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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());