This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch write_can_multig in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 53bfbd2ce2256821343eac74d2a14e496e6ba378 Author: Xuanwo <[email protected]> AuthorDate: Wed Sep 13 08:39:26 2023 +0800 Fix doc test Signed-off-by: Xuanwo <[email protected]> --- core/src/types/writer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/types/writer.rs b/core/src/types/writer.rs index 56e87c5fb..5cfedca47 100644 --- a/core/src/types/writer.rs +++ b/core/src/types/writer.rs @@ -105,7 +105,6 @@ impl Writer { /// async fn sink_example(op: Operator) -> Result<()> { /// let mut w = op /// .writer_with("path/to/file") - /// .content_length(2 * 4096) /// .await?; /// let stream = stream::iter(vec![vec![0; 4096], vec![1; 4096]]).map(Ok); /// w.sink(stream).await?; @@ -154,7 +153,7 @@ impl Writer { /// /// #[tokio::main] /// async fn copy_example(op: Operator) -> Result<()> { - /// let mut w = op.writer_with("path/to/file").content_length(4096).await?; + /// let mut w = op.writer_with("path/to/file").await?; /// let reader = Cursor::new(vec![0; 4096]); /// w.copy(reader).await?; /// w.close().await?;
