mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-24 12:33:05 +00:00
fix link in ANSI terminal (#602)
This commit is contained in:
parent
203b108521
commit
ffaa6acec8
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
[![ansi_term-badge]][ansi_term] [![cat-command-line-badge]][cat-command-line]
|
||||
|
||||
This program depicts the use of [`ansi_term` crate] and how it is used for controlling colours and formatting, such as blue bold text or yellow underlined text, on ANSI terminals.
|
||||
This program depicts the use of [`ansi_term`] crate and how it is used for controlling colours and formatting, such as blue bold text or yellow underlined text, on ANSI terminals.
|
||||
|
||||
There are two main data structures in [`ansi_term`]: [`ANSIString`] and [`Style`]. A [`Style`] holds stylistic information: colours, whether the text should be bold, or blinking, or whatever. There are also Colour variants that represent simple foreground colour styles. An [`ANSIString`] is a string paired with a [`Style`].
|
||||
|
||||
|
@ -52,7 +52,7 @@ fn main(){
|
|||
```
|
||||
|
||||
[documentation]: https://docs.rs/ansi_term/
|
||||
[`ansi_term` crate]: https://crates.io/crates/ansi_term
|
||||
[`ansi_term`]: https://crates.io/crates/ansi_term
|
||||
[`ANSIString`]: https://docs.rs/ansi_term/*/ansi_term/type.ANSIString.html
|
||||
[`Style`]: https://docs.rs/ansi_term/*/ansi_term/struct.Style.html
|
||||
[`Style::new()`]: https://docs.rs/ansi_term/0.11.0/ansi_term/struct.Style.html#method.new
|
||||
|
|
Loading…
Reference in a new issue