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 0dd74acf doc(bindings/nodejs): update presign example in doc (#1901)
0dd74acf is described below

commit 0dd74acf04530ed8ee6addddc93668a327999e76
Author: Suyan <[email protected]>
AuthorDate: Tue Apr 11 10:14:44 2023 +0800

    doc(bindings/nodejs): update presign example in doc (#1901)
    
    Signed-off-by: suyanhanx <[email protected]>
---
 bindings/nodejs/src/lib.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bindings/nodejs/src/lib.rs b/bindings/nodejs/src/lib.rs
index 04d6c7cd..0c62ae34 100644
--- a/bindings/nodejs/src/lib.rs
+++ b/bindings/nodejs/src/lib.rs
@@ -477,7 +477,7 @@ impl Operator {
     /// ### Example
     ///
     /// ```javascript
-    /// const req = op.presignRead(path, parseInt(expires));
+    /// const req = await op.presignRead(path, parseInt(expires));
     ///
     /// console.log("method: ", req.method);
     /// console.log("url: ", req.url);
@@ -500,7 +500,7 @@ impl Operator {
     /// ### Example
     ///
     /// ```javascript
-    /// const req = op.presignWrite(path, parseInt(expires));
+    /// const req = await op.presignWrite(path, parseInt(expires));
     ///
     /// console.log("method: ", req.method);
     /// console.log("url: ", req.url);
@@ -523,7 +523,7 @@ impl Operator {
     /// ### Example
     ///
     /// ```javascript
-    /// const req = op.presignStat(path, parseInt(expires));
+    /// const req = await op.presignStat(path, parseInt(expires));
     ///
     /// console.log("method: ", req.method);
     /// console.log("url: ", req.url);

Reply via email to