fix: add more colors to doc examples

This commit is contained in:
ad4mx 2022-07-19 19:18:13 +02:00
parent 771c655b2d
commit 3e6cb2bbf8
3 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@
[![Version](https://img.shields.io/crates/v/spinoff.svg)](https://crates.io/crates/spinoff) [![Downloads](https://img.shields.io/crates/d/spinoff)](https://crates.io/crates/spinoff) [![Docs](https://img.shields.io/docsrs/spinoff)](https://docs.rs/spinoff/latest/spinoff) [![License](https://img.shields.io/crates/l/spinoff)](https://crates.io/crates/spinoff) ![Actions](https://img.shields.io/github/workflow/status/ad4mx/spinoff/Rust)
![til](assets/example.gif)
![](assets/example.gif)
## ⚡ Usage
@ -50,7 +50,7 @@ Other examples can be found in the [documentation](https://docs.rs/spinoff/lates
## 📖 Documentation
* All relevant documentation can be found on the [Docs.rs page](https://docs.rs/spinoff/latest/spinoff/).
* If you want to see all the available `Spinner` options, check the [`Spinners`](src/spinner_enum.rs) enum.
* If you want to see all the available `Spinner` options, check the [`Spinners`](src/utils/spinner_enum.rs) enum.
## 🔨 Examples

View file

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 159 KiB

View file

@ -228,11 +228,11 @@ impl Spinner {
/// # Example
///
/// ```
/// # use spinoff::{Spinners, Spinner};
/// # use spinoff::{Spinners, Spinner, Color};
/// # use std::thread::sleep;
/// # use std::time::Duration;
/// #
/// let sp = Spinner::new(Spinners::BouncingBar, "Executing code...", None);
/// let sp = Spinner::new(Spinners::BouncingBar, "Executing code...", Some(Color::Green));
/// sleep(Duration::from_millis(800));
/// sp.fail("Code failed to compile!");
/// ```