From: W. Trevor King Date: Mon, 8 Jan 2018 21:56:54 +0000 (-0800) Subject: doc/guide/dependencies: Add a 'rust' language marker X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~3^2~49^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=272227403d80f6dc1fba840566b1a7991b9e1a54;p=cargo.git doc/guide/dependencies: Add a 'rust' language marker This had been added to the non-book docs in 2ad45a56 ([doc] Sync back doc/book changes into old docs, 2017-08-31, #4455), despite the fact that the book didn't actually have that marker: $ git cat-file -p 2ad45a56:src/doc/book/src/guide/dependencies.md | grep -A2 'You can now use the' You can now use the `regex` library using `extern crate` in `main.rs`. ``` --- diff --git a/src/doc/src/guide/dependencies.md b/src/doc/src/guide/dependencies.md index e199487f2..fc16eb614 100644 --- a/src/doc/src/guide/dependencies.md +++ b/src/doc/src/guide/dependencies.md @@ -70,7 +70,7 @@ we choose to `cargo update`. You can now use the `regex` library using `extern crate` in `main.rs`. -``` +```rust extern crate regex; use regex::Regex;