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 2023/03/20 06:20:15 UTC
[incubator-opendal] branch main updated: Minor: Fix a few typos in code comment (#1701)
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/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 3748c067 Minor: Fix a few typos in code comment (#1701)
3748c067 is described below
commit 3748c067c7ec4b6358db44a1a09a456c34e14833
Author: Liang-Chi Hsieh <vi...@gmail.com>
AuthorDate: Sun Mar 19 23:20:11 2023 -0700
Minor: Fix a few typos in code comment (#1701)
Fix minor typos
---
core/src/raw/accessor.rs | 2 +-
core/src/raw/layer.rs | 2 +-
core/src/types/operator/builder.rs | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/src/raw/accessor.rs b/core/src/raw/accessor.rs
index e3564ebd..0239f8ce 100644
--- a/core/src/raw/accessor.rs
+++ b/core/src/raw/accessor.rs
@@ -414,7 +414,7 @@ impl<T: Accessor + ?Sized> Accessor for Arc<T> {
}
}
-/// FusedAccessor is the type erased accessor with `Box<dyn Reader>`.
+/// FusedAccessor is the type erased accessor with `Box<dyn Read>`.
pub type FusedAccessor = Arc<
dyn Accessor<
Reader = oio::Reader,
diff --git a/core/src/raw/layer.rs b/core/src/raw/layer.rs
index adcdccb3..3d3fe168 100644
--- a/core/src/raw/layer.rs
+++ b/core/src/raw/layer.rs
@@ -125,7 +125,7 @@ use crate::*;
/// }
/// ```
pub trait Layer<A: Accessor> {
- /// The layered accessor that return by this layer.
+ /// The layered accessor that returned by this layer.
type LayeredAccessor: Accessor;
/// Intercept the operations on the underlying storage.
diff --git a/core/src/types/operator/builder.rs b/core/src/types/operator/builder.rs
index 914a515c..ac41192a 100644
--- a/core/src/types/operator/builder.rs
+++ b/core/src/types/operator/builder.rs
@@ -172,11 +172,11 @@ impl Operator {
}
}
-/// OperatorBuilder is a typed builder to builder an Operator.
+/// OperatorBuilder is a typed builder to build an Operator.
///
/// # Notes
///
-/// OpenDAL uses static dispatch internally and only perform dynamic
+/// OpenDAL uses static dispatch internally and only performs dynamic
/// dispatch at the outmost type erase layer. OperatorBuilder is the only
/// public API provided by OpenDAL come with generic parameters.
///