This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new a209bab Fix incorrect function name in README (#256)
a209bab is described below
commit a209bab14acfb3e38583ab9a11e37f1a50db62f6
Author: Bryce Mecum <[email protected]>
AuthorDate: Thu Jul 13 04:41:08 2023 -0800
Fix incorrect function name in README (#256)
While integrating into another C project, I pulled example code from the
readme that called,
```c
ArrowSchemaInit(schema_out, NANOARROW_TYPE_INT32))
```
and got this error:
```
src/main.c:41:57: error: too many arguments to function call, expected
single argument 'schema', have 2 arguments
NANOARROW_RETURN_NOT_OK(ArrowSchemaInit(schema_out,
NANOARROW_TYPE_INT32));
```
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 0c1c2bd..e7c806f 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ int make_simple_array(struct ArrowArray* array_out, struct
ArrowSchema* schema_o
NANOARROW_RETURN_NOT_OK(ArrowArrayAppendInt(array_out, 3));
NANOARROW_RETURN_NOT_OK(ArrowArrayFinishBuildingDefault(array_out, &error));
- NANOARROW_RETURN_NOT_OK(ArrowSchemaInit(schema_out, NANOARROW_TYPE_INT32));
+ NANOARROW_RETURN_NOT_OK(ArrowSchemaInitFromType(schema_out,
NANOARROW_TYPE_INT32));
return NANOARROW_OK;
}