Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit d026fff

Browse files
koivunejljedrz
andauthored
doc: suggestions from code review
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
1 parent 2b496ee commit d026fff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/fetch_and_cat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async fn main() {
2626
);
2727
eprintln!();
2828
eprintln!(
29-
"Example will try to find the file by the given IPFS_PATH and print it's contents to stdout."
29+
"Example will try to find the file by the given IPFS_PATH and print its contents to stdout."
3030
);
3131
eprintln!();
3232
eprintln!("The example has three modes in the order of precedence:");
@@ -37,7 +37,7 @@ async fn main() {
3737
"2. When IPFS_PATH and MULTIADDR are given, connect to MULTIADDR to get the file"
3838
);
3939
eprintln!(
40-
"3. When only IPFS_PATH is given, await to be connected by another ipfs node"
40+
"3. When only IPFS_PATH is given, wait to be connected to by another ipfs node"
4141
);
4242
exit(0);
4343
}

http/src/v0/bootstrap.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct BootstrapAddQuery {
4848
timeout: Option<StringSerialized<humantime::Duration>>,
4949
}
5050

51-
// optionally timedout wrapper around [`Ipfs::restore_bootstrappers`] with stringified errors, used
51+
// optionally timed-out wrapper around [`Ipfs::restore_bootstrappers`] with stringified errors, used
5252
// in both bootstrap_add_query and bootstrap_restore_query
5353
async fn restore_helper<T: IpfsTypes>(
5454
ipfs: Ipfs<T>,
@@ -83,7 +83,7 @@ async fn bootstrap_add_query<T: IpfsTypes>(
8383
.map_err(StringError::from)?
8484
.to_string()]
8585
} else if default == Some(true) {
86-
// HTTP api documents the ?default=true as the deprecated way
86+
// HTTP api documents `?default=true` as deprecated
8787
let _ = restore_helper(ipfs, &timeout).await?;
8888

8989
// return a list of all known bootstrap nodes as js-ipfs does
@@ -116,7 +116,7 @@ pub struct BootstrapClearQuery {
116116
timeout: Option<StringSerialized<humantime::Duration>>,
117117
}
118118

119-
// optionally timeouted wrapper over [`Ipfs::clear_bootstrappers`] used in both
119+
// optionally timed-out wrapper over [`Ipfs::clear_bootstrappers`] used in both
120120
// `bootstrap_clear_query` and `bootstrap_rm_query`.
121121
async fn clear_helper<T: IpfsTypes>(
122122
ipfs: Ipfs<T>,
@@ -204,7 +204,7 @@ async fn bootstrap_restore_query<T: IpfsTypes>(
204204
) -> Result<impl Reply, Rejection> {
205205
let _ = restore_helper(ipfs, &query.timeout).await?;
206206

207-
// similar to add?default=true return a list of all bootstrap nodes, not only the added ones
207+
// similar to add?default=true; returns a list of all bootstrap nodes, not only the added ones
208208
let peers = ipfs::config::BOOTSTRAP_NODES.to_vec();
209209
let response = Response { peers };
210210

0 commit comments

Comments
 (0)