Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Sep 1, 2024
1 parent 89ca30e commit 5f1385c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/docs/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ Please use `op.list_with().metakey()` instead of `op.metadata(&entry)`, for exam
```rust
// Before
let entries: Vec<Entry> = op.list("dir/").await?;
for entry in entris {
for entry in entries {
let meta = op.metadata(&entry, Metakey::ContentLength | Metakey::ContentType).await?;
println!("{} {}", entry.name(), entry.metadata().content_length());
}
Expand All @@ -424,7 +424,7 @@ for entry in entris {
let entries: Vec<Entry> = op
.list_with("dir/")
.metakey(Metakey::ContentLength | Metakey::ContentType).await?;
for entry in entris {
for entry in entries {
println!("{} {}", entry.name(), entry.metadata().content_length());
}
```
Expand Down

0 comments on commit 5f1385c

Please sign in to comment.