Skip to content

Commit e887f11

Browse files
authored
Fix typos (#19)
### Checklist * [x] I have read the [Contributor Guide](../../CONTRIBUTING.md) * [x] I have read and agree to the [Code of Conduct](../../CODE_OF_CONDUCT.md) * [x] I have added a description of my changes and why I'd like them included in the section below ### Description of Changes Fix typos identified by `typos-cli` ### Related Issues
1 parent c8988e3 commit e887f11

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/ls.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ impl NormalPrinter {
157157
let current_year = time::OffsetDateTime::now_utc().year();
158158

159159
for (i, item) in items.into_iter().enumerate() {
160-
if let Some(nd) = next_dir {
161-
if *nd.1 == i {
162-
let dir = &(&prefixes[nd.0])[self.prefix_len..];
160+
if let Some(dir) = next_dir {
161+
if *dir.1 == i {
162+
let dir = &(&prefixes[dir.0])[self.prefix_len..];
163163
let dir = &dir[..dir.len() - 1]; // Remove trailing delimiter
164164

165165
print_dir(&self.cc, self.display, dir);
@@ -203,8 +203,8 @@ impl NormalPrinter {
203203
}
204204
}
205205

206-
while let Some(nd) = next_dir {
207-
let dir = &(&prefixes[nd.0])[self.prefix_len..];
206+
while let Some(dir) = next_dir {
207+
let dir = &(&prefixes[dir.0])[self.prefix_len..];
208208
let dir = &dir[..dir.len() - 1]; // Remove trailing delimiter
209209

210210
print_dir(&self.cc, self.display, dir);

src/signurl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub struct Args {
6060
#[clap(
6161
short,
6262
default_value = "1h",
63-
long_help = "The duration that ths signed url will be valid for.
63+
long_help = "The duration that the signed url will be valid for.
6464
6565
Times may be specified with no suffix (default hours), or one of:
6666
* (s)econds

src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl GsUrl {
153153
}
154154
}
155155

156-
/// Converts a `gs://<bucket_name>/<object_name>` url into a regular object identifer
156+
/// Converts a `gs://<bucket_name>/<object_name>` url into a regular object identifier
157157
pub fn gs_url_to_object_id(url: &url::Url) -> anyhow::Result<GsUrl> {
158158
match url.scheme() {
159159
"gs" => {

0 commit comments

Comments
 (0)