This is an automated email from the ASF dual-hosted git repository.

meteorgan pushed a commit to branch fix-docs
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 05ab36cda8a0e778d00cda488ae5e62afb28ccd4
Author: meteorgan <[email protected]>
AuthorDate: Thu Jan 22 23:37:30 2026 +0800

    chore(docs): fix docs for writer_options
---
 core/core/src/types/operator/operator.rs | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/core/core/src/types/operator/operator.rs 
b/core/core/src/types/operator/operator.rs
index 9891652ab..51b2dbade 100644
--- a/core/core/src/types/operator/operator.rs
+++ b/core/core/src/types/operator/operator.rs
@@ -927,9 +927,14 @@ impl Operator {
     ///
     /// # async fn test(op: Operator) -> Result<()> {
     /// let mut w = op
-    ///     .writer_with("path/to/file")
-    ///     .chunk(4 * 1024 * 1024)
-    ///     .concurrent(8)
+    ///     .writer_options(
+    ///         "path/to/file",
+    ///         options::WriteOptions {
+    ///             chunk: Some(4 * 1024 * 1024),
+    ///             concurrent: 8,
+    ///           ..Default::default()
+    ///         },
+    ///     )
     ///     .await?;
     /// w.write(vec![0; 4096]).await?;
     /// w.write(vec![1; 4096]).await?;

Reply via email to