From: Kalita Alexey Date: Tue, 24 Jan 2017 16:40:20 +0000 (+0300) Subject: Fixed comments X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~20^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c5ea6958c86726dd7b55b62e8fc7a49649571184;p=cargo.git Fixed comments [ci skip] --- diff --git a/src/doc/manifest.md b/src/doc/manifest.md index 5a61c741d..b6bbb328e 100644 --- a/src/doc/manifest.md +++ b/src/doc/manifest.md @@ -451,8 +451,7 @@ To structure your code after you've created the files and folders for your proje Files located under `examples` are example uses of the functionality provided by the library. When compiled, they are placed in the `target/examples` directory. -They may compile either as executables (with a `main()` function) or as libraries. -They load in the library by using `extern crate `. They are compiled when you run +They can compile either as executables (with a `main()` function) or libraries and pull in the library by using `extern crate `. They are compiled when you run your tests to protect them from bitrotting. You can run individual executable examples with the command `cargo run --example @@ -460,7 +459,7 @@ You can run individual executable examples with the command `cargo run --example Specify `crate-type` to make an example be compiled as a library: ```toml -[[example.example]] +[[example.foo]] crate-type = ["staticlib"] ```