From 5f1385c85dc71559240d3fbf3f45fd69dafc811f Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Sun, 1 Sep 2024 17:24:24 +0800 Subject: [PATCH] Fix typos Signed-off-by: Xuanwo --- core/src/docs/upgrade.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/docs/upgrade.md b/core/src/docs/upgrade.md index 18d31ee2695..3b29ef8a126 100644 --- a/core/src/docs/upgrade.md +++ b/core/src/docs/upgrade.md @@ -415,7 +415,7 @@ Please use `op.list_with().metakey()` instead of `op.metadata(&entry)`, for exam ```rust // Before let entries: Vec = 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()); } @@ -424,7 +424,7 @@ for entry in entris { let entries: Vec = 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()); } ```