From fd9763dc5b12ebc42b5f06810110fe52aa68f22d Mon Sep 17 00:00:00 2001 From: NKID00 Date: Thu, 4 Jul 2024 21:18:03 +0800 Subject: [PATCH 1/3] fix: typo --- core/src/types/scheme.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/types/scheme.rs b/core/src/types/scheme.rs index 5a3e74fe851e..23b09c32263e 100644 --- a/core/src/types/scheme.rs +++ b/core/src/types/scheme.rs @@ -166,7 +166,7 @@ pub enum Scheme { /// # NOTE /// /// - Custom must not overwrite any existing services name. - /// - Custom must be lowed cases. + /// - Custom must be in lower case. Custom(&'static str), } From f9c17698ca158de1f2268a08b4882e0798c3ecb2 Mon Sep 17 00:00:00 2001 From: NKID00 Date: Thu, 4 Jul 2024 22:17:27 +0800 Subject: [PATCH 2/3] fix: typo --- core/src/services/fs/backend.rs | 2 +- core/src/types/list.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/services/fs/backend.rs b/core/src/services/fs/backend.rs index 9c8d5b911f87..126e92b062db 100644 --- a/core/src/services/fs/backend.rs +++ b/core/src/services/fs/backend.rs @@ -166,7 +166,7 @@ impl Builder for FsBuilder { } } -/// Backend is used to serve `Accessor` support for posix alike fs. +/// Backend is used to serve `Accessor` support for posix-like fs. #[derive(Debug, Clone)] pub struct FsBackend { core: Arc, diff --git a/core/src/types/list.rs b/core/src/types/list.rs index 327eed0ad3ee..9c38b4fc050a 100644 --- a/core/src/types/list.rs +++ b/core/src/types/list.rs @@ -155,7 +155,7 @@ impl Stream for Lister { // Trying to pull more tasks if there are more space. if self.tasks.has_remaining() { - // Building future is we have a lister available. + // Building future if we have a lister available. if let Some(mut lister) = self.lister.take() { let fut = async move { let res = lister.next_dyn().await; From 0509b2ba932d60bc630eb802c14ba1864e532b1e Mon Sep 17 00:00:00 2001 From: NKID00 Date: Mon, 8 Jul 2024 16:06:40 +0800 Subject: [PATCH 3/3] fix: typo --- core/src/docs/rfcs/3243_list_prefix.md | 2 +- core/src/types/scheme.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/docs/rfcs/3243_list_prefix.md b/core/src/docs/rfcs/3243_list_prefix.md index 8ae49c264835..653ae518a51f 100644 --- a/core/src/docs/rfcs/3243_list_prefix.md +++ b/core/src/docs/rfcs/3243_list_prefix.md @@ -93,7 +93,7 @@ While create dir on a path: # Reference-level explanation -For POSIX-alike services, we will: +For POSIX-like services, we will: - Simulate the list prefix behavior by listing the parent dir and filter the children that matches the prefix. - Return `NotFound` while stat an existing file with `/` diff --git a/core/src/types/scheme.rs b/core/src/types/scheme.rs index 23b09c32263e..8937131620b3 100644 --- a/core/src/types/scheme.rs +++ b/core/src/types/scheme.rs @@ -74,7 +74,7 @@ pub enum Scheme { Foundationdb, /// [dbfs][crate::services::Dbfs]: DBFS backend support. Dbfs, - /// [fs][crate::services::Fs]: POSIX alike file system. + /// [fs][crate::services::Fs]: POSIX-like file system. Fs, /// [ftp][crate::services::Ftp]: FTP backend. Ftp,