Skip to content
New issue

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

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

Already on GitHub? # to your account

docs: fix some grammar errors in the doc of Operator #2173

Merged
merged 1 commit into from
Apr 30, 2023
Merged
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
26 changes: 13 additions & 13 deletions core/src/types/operator/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use crate::*;
///
/// We will usually do some general checks and data transformations in this layer,
/// like normalizing path from input, checking whether the path refers to one file or one directory, and so on.
/// Read [`concepts`][docs::concepts] for know more about [`Operator`].
/// Read [`concepts`][docs::concepts] for more about [`Operator`].
///
/// # Examples
///
Expand Down Expand Up @@ -164,7 +164,7 @@ impl Operator {
///
/// Use `stat` if you:
///
/// - Want detect the outside changes of path.
/// - Want to detect the outside changes of path.
/// - Don't want to read from cached metadata.
///
/// You may want to use `metadata` if you are working with entries
Expand Down Expand Up @@ -199,7 +199,7 @@ impl Operator {
///
/// Use `stat` if you:
///
/// - Want detect the outside changes of path.
/// - Want to detect the outside changes of path.
/// - Don't want to read from cached metadata.
///
/// You may want to use `metadata` if you are working with entries
Expand Down Expand Up @@ -247,7 +247,7 @@ impl Operator {
///
/// You may want to use `stat`, if you:
///
/// - Want detect the outside changes of path.
/// - Want to detect the outside changes of path.
/// - Don't want to read from cached metadata.
///
/// # Behavior
Expand All @@ -259,8 +259,8 @@ impl Operator {
///
/// ## Query already cached metadata
///
/// By query metadata with `None`, we can only query in-memory metadata
/// cache. In this way, we can make sure that no API call will send.
/// By querying metadata with `None`, we can only query in-memory metadata
/// cache. In this way, we can make sure that no API call will be sent.
///
/// ```
/// # use anyhow::Result;
Expand Down Expand Up @@ -300,7 +300,7 @@ impl Operator {
///
/// ## Query all metadata
///
/// By query metadata with `Complete`, we can make sure that we have fetched all metadata of this entry.
/// By querying metadata with `Complete`, we can make sure that we have fetched all metadata of this entry.
///
/// ```
/// # use anyhow::Result;
Expand Down Expand Up @@ -656,7 +656,7 @@ impl Operator {
///
/// - `from` and `to` must be a file.
/// - `to` will be overwritten if it exists.
/// - If `from` and `to` are the same, a `IsSameFile` error will occur.
/// - If `from` and `to` are the same, an `IsSameFile` error will occur.
/// - `copy` is idempotent. For same `from` and `to` input, the result will be the same.
///
/// # Examples
Expand Down Expand Up @@ -715,7 +715,7 @@ impl Operator {
///
/// - `from` and `to` must be a file.
/// - `to` will be overwritten if it exists.
/// - If `from` and `to` are the same, a `IsSameFile` error will occur.
/// - If `from` and `to` are the same, an `IsSameFile` error will occur.
///
/// # Examples
///
Expand Down Expand Up @@ -881,7 +881,7 @@ impl Operator {
///
/// # Notes
///
/// - Delete not existing error won't return errors.
/// - Deleting a file that does not exist won't return errors.
///
/// # Examples
///
Expand Down Expand Up @@ -927,9 +927,9 @@ impl Operator {
self.remove_via(stream::iter(paths)).await
}

/// remove will given paths.

/// remove_via will remove files via given stream.
/// remove will remove files via the given paths.
///
/// remove_via will remove files via the given stream.
///
/// We will delete by chunks with given batch limit on the stream.
///
Expand Down