Skip to content

Commit

Permalink
docs: Fix Operator::create() has been removed (#1560)
Browse files Browse the repository at this point in the history
Fix docs

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Mar 10, 2023
1 parent 33284f6 commit a92ea87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::*;

/// Builder is used to build a storage accessor used by [`Operator`].
///
/// It's recommended to use [`Operator::create`] instead of [`Operator::new`] to avoid use `Builder` trait directly.
/// It's recommended to use [`Operator::new`] to avoid use `Builder` trait directly.
pub trait Builder: Default {
/// Associated scheme for this builder.
const SCHEME: Scheme;
Expand Down
2 changes: 1 addition & 1 deletion src/types/operator/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::*;

/// # Operator build API
///
/// Operator should be built via [`OperatorBuilder`]. We recommend to use [`Operator::create`] to get started:
/// Operator should be built via [`OperatorBuilder`]. We recommend to use [`Operator::new`] to get started:
///
/// ```
/// # use anyhow::Result;
Expand Down

1 comment on commit a92ea87

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: a92ea87 Previous: b329279 Ratio
service_fs_read_full/4.00 KiB 123523 ns/iter (± 57082) 43502 ns/iter (± 14264) 2.84
service_memory_read_full/256 KiB 34669 ns/iter (± 1037) 13534 ns/iter (± 17) 2.56
service_fs_write_once/4.00 KiB 1173710 ns/iter (± 123839) 471216 ns/iter (± 39157) 2.49
service_memory_write_once/256 KiB 45994 ns/iter (± 2255) 21653 ns/iter (± 27) 2.12

This comment was automatically generated by workflow using github-action-benchmark.

CC: @Xuanwo

Please sign in to comment.