You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/07/08 04:55:46 UTC
(opendal) branch main updated: chore: Fix spelling (#4864)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new c3c0a32f96 chore: Fix spelling (#4864)
c3c0a32f96 is described below
commit c3c0a32f9602d891eb5ed8ae6d11bff91b8ba1ae
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Mon Jul 8 14:55:42 2024 +1000
chore: Fix spelling (#4864)
Fix spelling
---
core/src/docs/rfcs/1391_object_metadataer.md | 2 +-
core/src/services/github/core.rs | 2 +-
core/src/services/gridfs/backend.rs | 2 +-
core/src/services/icloud/core.rs | 2 +-
core/tests/behavior/async_delete.rs | 2 +-
core/tests/behavior/async_list.rs | 8 ++++----
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/core/src/docs/rfcs/1391_object_metadataer.md b/core/src/docs/rfcs/1391_object_metadataer.md
index 57ceb2e3f7..a89c82285f 100644
--- a/core/src/docs/rfcs/1391_object_metadataer.md
+++ b/core/src/docs/rfcs/1391_object_metadataer.md
@@ -50,7 +50,7 @@ let content_length = om.content_length().await;
let etag = om.etag().await;
```
-During the whole lifetime of the coresbonding `Object` or `ObjectMetadataer`, we make sure that at most one `stat` call is sent. After this change, users will never get an `ObjectMetadata` anymore.
+During the whole lifetime of the corresponding `Object` or `ObjectMetadataer`, we make sure that at most one `stat` call is sent. After this change, users will never get an `ObjectMetadata` anymore.
# Reference-level explanation
diff --git a/core/src/services/github/core.rs b/core/src/services/github/core.rs
index ed76d61305..49a0cc5098 100644
--- a/core/src/services/github/core.rs
+++ b/core/src/services/github/core.rs
@@ -83,7 +83,7 @@ impl GithubCore {
impl GithubCore {
pub async fn get_file_sha(&self, path: &str) -> Result<Option<String>> {
- // if the token is not set, we shhould not try to get the sha of the file.
+ // if the token is not set, we should not try to get the sha of the file.
if self.token.is_none() {
return Err(Error::new(
ErrorKind::PermissionDenied,
diff --git a/core/src/services/gridfs/backend.rs b/core/src/services/gridfs/backend.rs
index 4119f0d9d9..c00724c77b 100644
--- a/core/src/services/gridfs/backend.rs
+++ b/core/src/services/gridfs/backend.rs
@@ -98,7 +98,7 @@ impl GridFsBuilder {
self
}
- /// Set the buctet name of the MongoDB GridFs service to read/write.
+ /// Set the bucket name of the MongoDB GridFs service to read/write.
///
/// Default to `fs` if not specified.
pub fn bucket(&mut self, bucket: &str) -> &mut Self {
diff --git a/core/src/services/icloud/core.rs b/core/src/services/icloud/core.rs
index 6a5819abf7..c62ba60330 100644
--- a/core/src/services/icloud/core.rs
+++ b/core/src/services/icloud/core.rs
@@ -194,7 +194,7 @@ impl IcloudSigner {
return Err(parse_error(resp).await?);
}
- // Updata SessionData cookies.We need obtain `X-APPLE-WEBAUTH-USER` cookie to get file.
+ // Update SessionData cookies.We need obtain `X-APPLE-WEBAUTH-USER` cookie to get file.
self.update(&resp)?;
let bs = resp.into_body();
diff --git a/core/tests/behavior/async_delete.rs b/core/tests/behavior/async_delete.rs
index 90bf6d0981..ab51712d69 100644
--- a/core/tests/behavior/async_delete.rs
+++ b/core/tests/behavior/async_delete.rs
@@ -147,7 +147,7 @@ pub async fn test_delete_stream(op: Operator) -> Result<()> {
let dir = uuid::Uuid::new_v4().to_string();
op.create_dir(&format!("{dir}/"))
.await
- .expect("creat must succeed");
+ .expect("create must succeed");
let expected: Vec<_> = (0..100).collect();
for path in expected.iter() {
diff --git a/core/tests/behavior/async_list.rs b/core/tests/behavior/async_list.rs
index b526e39e06..ae5c6b04ba 100644
--- a/core/tests/behavior/async_list.rs
+++ b/core/tests/behavior/async_list.rs
@@ -325,7 +325,7 @@ pub async fn test_list_non_exist_dir(op: Operator) -> Result<()> {
pub async fn test_list_sub_dir(op: Operator) -> Result<()> {
let path = format!("{}/", uuid::Uuid::new_v4());
- op.create_dir(&path).await.expect("creat must succeed");
+ op.create_dir(&path).await.expect("create must succeed");
let mut obs = op.lister("/").await?;
let mut found = false;
@@ -360,11 +360,11 @@ pub async fn test_list_nested_dir(op: Operator) -> Result<()> {
let dir_name = format!("{}/", uuid::Uuid::new_v4());
let dir_path = format!("{dir}{dir_name}");
- op.create_dir(&dir).await.expect("creat must succeed");
+ op.create_dir(&dir).await.expect("create must succeed");
op.write(&file_path, "test_list_nested_dir")
.await
- .expect("creat must succeed");
- op.create_dir(&dir_path).await.expect("creat must succeed");
+ .expect("create must succeed");
+ op.create_dir(&dir_path).await.expect("create must succeed");
let obs = op.list(&parent).await?;
assert_eq!(obs.len(), 1, "parent should only got 1 entry");