From 468b4ec8215df2f267e5d3c8dc566cc8c8e45753 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Tue, 25 Feb 2020 03:35:15 +0600 Subject: [PATCH] Improve the 'Getting started' section --- README.md | 6 ++++++ src/lib.rs | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index b74dd81b..314f663c 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,13 @@ $ set TELOXIDE_TOKEN= ``` 3. Be sure that you are up to date: ```bash +# If you're using stable $ rustup update stable +$ rustup override set stable + +# If you're using nightly +$ rustup update nightly +$ rustup override set nightly ``` 4. Execute `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`: diff --git a/src/lib.rs b/src/lib.rs index abbf8825..62a700d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,13 @@ //! //! 3. Be sure that you are up to date: //! ```bash +//! # If you're using stable //! $ rustup update stable +//! $ rustup override set stable +//! +//! # If you're using nightly +//! $ rustup update nightly +//! $ rustup override set nightly //! ``` //! //! 4. Execute `cargo new my_bot`, enter the directory and put these lines into