Skip to content

Commit

Permalink
chore: Fix typos in documentation (#273)
Browse files Browse the repository at this point in the history
I am attempting to vendor nanoarrow into pandas (see
pandas-dev/pandas#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
  • Loading branch information
WillAyd authored Aug 14, 2023
1 parent d683836 commit 3157182
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/nanoarrow/array_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions src/nanoarrow/nanoarrow.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/nanoarrow/nanoarrow_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/nanoarrow/schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3157182

Please sign in to comment.