diff --git a/README.md b/README.md index b2be84e..6878c06 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,10 @@ So this library may not work properly in the future:( # Installation -Add the following to your `Cargo.toml` file: +Run the following Cargo command in your project directory: -```toml -[dependencies] -tetr_ch = "0.3.5" +```bash +cargo add tetr_ch ``` # Examples diff --git a/src/lib.rs b/src/lib.rs index 6c20206..40d5f99 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,11 +22,10 @@ //! //! # Installation //! -//! Add the following to your `Cargo.toml` file: +//! Run the following Cargo command in your project directory: //! -//! ```toml -//! [dependencies] -//! tetr_ch = "0.3.5" +//! ```bash +//! cargo add tetr_ch //! ``` //! //! # Examples