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 3157182 chore: Fix typos in documentation (#273)
3157182 is described below
commit 3157182596f845ef231977e8ed32b9372a7ef5e8
Author: William Ayd <[email protected]>
AuthorDate: Mon Aug 14 13:13:09 2023 -0400
chore: Fix typos in documentation (#273)
I am attempting to vendor nanoarrow into pandas (see
https://github.com/pandas-dev/pandas/pull/54506)
We use codespell in our pre-commit and it is failing due to these.
https://github.com/codespell-project/codespell
Could also add to pre-commit here if there is interest
---
src/nanoarrow/array_inline.h | 2 +-
src/nanoarrow/nanoarrow.h | 4 ++--
src/nanoarrow/nanoarrow_types.h | 2 +-
src/nanoarrow/schema.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/nanoarrow/array_inline.h b/src/nanoarrow/array_inline.h
index a2e1cdc..208462c 100644
--- a/src/nanoarrow/array_inline.h
+++ b/src/nanoarrow/array_inline.h
@@ -667,7 +667,7 @@ static inline ArrowErrorCode
ArrowArrayFinishUnionElement(struct ArrowArray* arr
switch (private_data->storage_type) {
case NANOARROW_TYPE_DENSE_UNION:
- // Apppend the target child length to the union offsets buffer
+ // Append the target child length to the union offsets buffer
_NANOARROW_CHECK_RANGE(array->children[child_index]->length, 0,
INT32_MAX);
NANOARROW_RETURN_NOT_OK(ArrowBufferAppendInt32(
ArrowArrayBuffer(array, 1),
(int32_t)array->children[child_index]->length - 1));
diff --git a/src/nanoarrow/nanoarrow.h b/src/nanoarrow/nanoarrow.h
index 1328964..9308411 100644
--- a/src/nanoarrow/nanoarrow.h
+++ b/src/nanoarrow/nanoarrow.h
@@ -450,7 +450,7 @@ ArrowErrorCode ArrowMetadataBuilderRemove(struct
ArrowBuffer* buffer,
/// Contains more readily extractable values than a raw ArrowSchema.
/// Clients can stack or statically allocate this structure but are
/// encouraged to use the provided getters to ensure forward
-/// compatiblity.
+/// compatibility.
struct ArrowSchemaView {
/// \brief A pointer to the schema represented by this view
struct ArrowSchema* schema;
@@ -923,7 +923,7 @@ ArrowErrorCode ArrowArrayFinishBuildingDefault(struct
ArrowArray* array,
/// (i.e. NANOARROW_VALIDATION_LEVEL_NONE or
NANOARROW_VALIDATION_LEVEL_MINIMAL) if CPU
/// buffer data access is not possible or more validation (i.e.,
/// NANOARROW_VALIDATION_LEVEL_FULL) if buffer content was obtained from an
untrusted or
-/// corruptable source.
+/// corruptible source.
ArrowErrorCode ArrowArrayFinishBuilding(struct ArrowArray* array,
enum ArrowValidationLevel
validation_level,
struct ArrowError* error);
diff --git a/src/nanoarrow/nanoarrow_types.h b/src/nanoarrow/nanoarrow_types.h
index 5a373f1..e96207e 100644
--- a/src/nanoarrow/nanoarrow_types.h
+++ b/src/nanoarrow/nanoarrow_types.h
@@ -232,7 +232,7 @@ typedef int ArrowErrorCode;
/// \ingroup nanoarrow-errors
///
/// If nanoarrow was built in debug mode (i.e., defined(NANOARROW_DEBUG) is
true),
-/// print a message to stderr and abort. If nanoarrow was bulit in release
mode,
+/// print a message to stderr and abort. If nanoarrow was built in release
mode,
/// this statement has no effect. You can customize fatal error behaviour
/// be defining the NANOARROW_PRINT_AND_DIE macro before including nanoarrow.h
/// This macro is provided as a convenience for users and is not used
internally.
diff --git a/src/nanoarrow/schema.c b/src/nanoarrow/schema.c
index 8b24fbe..75b078f 100644
--- a/src/nanoarrow/schema.c
+++ b/src/nanoarrow/schema.c
@@ -1211,7 +1211,7 @@ static int64_t ArrowSchemaTypeToStringInternal(struct
ArrowSchemaView* schema_vi
}
}
-// Helper for bookeeping to emulate sprintf()-like behaviour spread
+// Helper for bookkeeping to emulate sprintf()-like behaviour spread
// among multiple sprintf calls.
static inline void ArrowToStringLogChars(char** out, int64_t n_chars_last,
int64_t* n_remaining, int64_t*
n_chars) {