From: Tshepang Lekhonkhobe Date: Thu, 1 Dec 2016 20:08:59 +0000 (+0200) Subject: doc: fix code formatting X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~97^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e38bdca25202c036a54ce86527d1957819765313;p=cargo.git doc: fix code formatting --- diff --git a/src/cargo/util/network.rs b/src/cargo/util/network.rs index 4bc12b7b4..e5f22a1c3 100644 --- a/src/cargo/util/network.rs +++ b/src/cargo/util/network.rs @@ -2,14 +2,17 @@ use util::{CargoResult, Config, errors}; /// Wrapper method for network call retry logic. /// -/// Retry counts provided by Config object 'net.retry'. Config shell outputs +/// Retry counts provided by Config object `net.retry`. Config shell outputs /// a warning on per retry. /// /// Closure must return a CargoResult. /// -/// Example: +/// # Examples +/// +/// ```ignore /// use util::network; /// cargo_result = network.with_retry(&config, || something.download()); +/// ``` pub fn with_retry(config: &Config, mut callback: F) -> CargoResult where F: FnMut() -> Result, E: errors::NetworkError