From 2f0e511ab69fd8770a6a4463abb6e284f4d522bd Mon Sep 17 00:00:00 2001 From: Corentin Henry Date: Thu, 8 Jun 2017 11:42:10 -0700 Subject: [PATCH] clippy doc_markdown --- src/app/help.rs | 6 +++--- src/lib.rs | 8 ++++---- src/macros.rs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/help.rs b/src/app/help.rs index 29322db4..84c05945 100644 --- a/src/app/help.rs +++ b/src/app/help.rs @@ -726,9 +726,9 @@ fn copy_until(r: &mut R, w: &mut W, delimiter_byte: u8) -> Co /// Copies the contents of a reader into a writer until a {tag} is found, /// copying the tag content to a buffer and returning its size. /// In addition to errors, there are three possible outputs: -/// - None: The reader was consumed. -/// - Some(Ok(0)): No tag was captured but the reader still contains data. -/// - Some(Ok(length>0)): a tag with `length` was captured to the tag_buffer. +/// - `None`: The reader was consumed. +/// - `Some(Ok(0))`: No tag was captured but the reader still contains data. +/// - `Some(Ok(length>0))`: a tag with `length` was captured to the `tag_buffer`. fn copy_and_capture(r: &mut R, w: &mut W, tag_buffer: &mut Cursor>) diff --git a/src/lib.rs b/src/lib.rs index 2c212bf5..73e74f11 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -327,9 +327,9 @@ //! //! #### Features enabled by default //! -//! * **"suggestions"**: Turns on the `Did you mean '--myoption'?` feature for when users make typos. (builds dependency `strsim`) -//! * **"color"**: Turns on colored error messages. This feature only works on non-Windows OSs. (builds dependency `ansi-term` and `atty`) -//! * **"wrap_help"**: Wraps the help at the actual terminal width when available, instead of 120 chracters. (builds dependency `term_size`) +//! * `suggestions`: Turns on the `Did you mean '--myoption'?` feature for when users make typos. (builds dependency `strsim`) +//! * `color`: Turns on colored error messages. This feature only works on non-Windows OSs. (builds dependency `ansi-term` and `atty`) +//! * `wrap_help`: Wraps the help at the actual terminal width when available, instead of 120 chracters. (builds dependency `term_size`) //! //! To disable these, add this to your `Cargo.toml`: //! @@ -478,7 +478,7 @@ //! //! ### Compatibility Policy //! -//! Because `clap` takes SemVer and compatibility seriously, this is the official policy regarding +//! Because `clap` takes `SemVer` and compatibility seriously, this is the official policy regarding //! breaking changes and previous versions of Rust. //! //! `clap` will pin the minimum required version of Rust to the CI builds. Bumping the minimum diff --git a/src/macros.rs b/src/macros.rs index 67a248ab..57ff3722 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -371,7 +371,7 @@ macro_rules! arg_enum { } /// Allows you to pull the version from your Cargo.toml at compile time as -/// MAJOR.MINOR.PATCH_PKGVERSION_PRE +/// `MAJOR.MINOR.PATCH_PKGVERSION_PRE` /// /// # Examples ///