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/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 0a71f4495 docs: Correcting errors in the c-bindings README example
(#7100)
0a71f4495 is described below
commit 0a71f4495a0c833f32abcad4e5998b84b6ac4938
Author: BetMul <[email protected]>
AuthorDate: Thu Dec 25 23:43:03 2025 +0800
docs: Correcting errors in the c-bindings README example (#7100)
docs: Correcting errors in the README example
---
bindings/c/README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bindings/c/README.md b/bindings/c/README.md
index 432a0cc49..c4ad228fa 100644
--- a/bindings/c/README.md
+++ b/bindings/c/README.md
@@ -19,9 +19,11 @@ int main()
{
/* Initialize a operator for "memory" backend, with no options */
opendal_result_operator_new result = opendal_operator_new("memory", 0);
- assert(result.operator_ptr != NULL);
+ assert(result.op != NULL);
assert(result.error == NULL);
+ opendal_operator* op = result.op;
+
/* Prepare some data to be written */
opendal_bytes data = {
.data = (uint8_t*)"this_string_length_is_24",