Skip to content

Commit

Permalink
Fix typos (#19)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
jayvdb authored Mar 21, 2024
1 parent c8988e3 commit e887f11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ impl NormalPrinter {
let current_year = time::OffsetDateTime::now_utc().year();

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

print_dir(&self.cc, self.display, dir);
Expand Down Expand Up @@ -203,8 +203,8 @@ impl NormalPrinter {
}
}

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

print_dir(&self.cc, self.display, dir);
Expand Down
2 changes: 1 addition & 1 deletion src/signurl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub struct Args {
#[clap(
short,
default_value = "1h",
long_help = "The duration that ths signed url will be valid for.
long_help = "The duration that the signed url will be valid for.
Times may be specified with no suffix (default hours), or one of:
* (s)econds
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl GsUrl {
}
}

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

0 comments on commit e887f11

Please sign in to comment.