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/06/07 03:52:57 UTC

[incubator-opendal] branch main updated: docs: Replace `create` with `new` (#2427)

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 a5073fbd5 docs: Replace `create` with `new` (#2427)
a5073fbd5 is described below

commit a5073fbd571c0446edd07aab0f7cd08edd43faa7
Author: Niwaka <61...@users.noreply.github.com>
AuthorDate: Wed Jun 7 12:52:53 2023 +0900

    docs: Replace `create` with `new` (#2427)
    
    docs: Replace create with new
---
 core/README.md | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/README.md b/core/README.md
index ca758fa8e..ca692bab2 100644
--- a/core/README.md
+++ b/core/README.md
@@ -81,7 +81,7 @@ async fn main() -> Result<()> {
     builder.bucket("test");
 
     // Init an operator
-    let op = Operator::create(builder)?
+    let op = Operator::new(builder)?
         // Init with logging layer enabled.
         .layer(LoggingLayer::default())
         .finish();
@@ -102,6 +102,7 @@ async fn main() -> Result<()> {
 
     Ok(())
 }
+
 ```
 
 ## Contributing