Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix spelling #4864

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/docs/rfcs/1391_object_metadataer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion core/src/services/github/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/gridfs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/icloud/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion core/tests/behavior/async_delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
8 changes: 4 additions & 4 deletions core/tests/behavior/async_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down
Loading