Skip to content

Commit d1334ef

Browse files
committed
Auto merge of #3358 - tshepang:formatting, r=alexcrichton
doc: fix code formatting
2 parents 71a6cc9 + e38bdca commit d1334ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/cargo/util/network.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ use util::{CargoResult, Config, errors};
22

33
/// Wrapper method for network call retry logic.
44
///
5-
/// Retry counts provided by Config object 'net.retry'. Config shell outputs
5+
/// Retry counts provided by Config object `net.retry`. Config shell outputs
66
/// a warning on per retry.
77
///
88
/// Closure must return a CargoResult.
99
///
10-
/// Example:
10+
/// # Examples
11+
///
12+
/// ```ignore
1113
/// use util::network;
1214
/// cargo_result = network.with_retry(&config, || something.download());
15+
/// ```
1316
pub fn with_retry<T, E, F>(config: &Config, mut callback: F) -> CargoResult<T>
1417
where F: FnMut() -> Result<T, E>,
1518
E: errors::NetworkError

0 commit comments

Comments
 (0)