From e456c6e18ce47279d429b38f0b348e1a5f2b2beb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 23 Sep 2024 11:41:52 -0400 Subject: Fix spelling --- src/alloc.c | 2 +- src/alloc.h | 2 +- src/bftw.c | 2 +- src/color.c | 2 +- src/expr.h | 2 +- src/opt.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/alloc.c b/src/alloc.c index 223d737..779e1d7 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -108,7 +108,7 @@ void *reserve(void *ptr, size_t align, size_t size, size_t count) { size_t old_size = size * count; // Capacity is doubled every power of two, from 0→1, 1→2, 2→4, etc. - // If we stayed within the same size class, re-use ptr. + // If we stayed within the same size class, reuse ptr. if (count & (count - 1)) { // Tell sanitizers about the new array element sanitize_alloc((char *)ptr + old_size, size); diff --git a/src/alloc.h b/src/alloc.h index 7b97b8c..9bab01b 100644 --- a/src/alloc.h +++ b/src/alloc.h @@ -350,7 +350,7 @@ void *varena_alloc(struct varena *varena, size_t count); * @param ptr * The object to resize. * @param old_count - * The old array lenth. + * The old array length. * @param new_count * The new array length. * @return diff --git a/src/bftw.c b/src/bftw.c index 0186e3f..61193d5 100644 --- a/src/bftw.c +++ b/src/bftw.c @@ -448,7 +448,7 @@ static void bftw_queue_rebalance(struct bftw_queue *queue, bool async) { } } -/** Detatch the next waiting file. */ +/** Detach the next waiting file. */ static void bftw_queue_detach(struct bftw_queue *queue, struct bftw_file *file, bool async) { bfs_assert(!file->ioqueued); diff --git a/src/color.c b/src/color.c index 7f653b0..1ee6662 100644 --- a/src/color.c +++ b/src/color.c @@ -31,7 +31,7 @@ struct esc_seq { /** The length of the escape sequence. */ size_t len; - /** The escape sequence iteself, without a terminating NUL. */ + /** The escape sequence itself, without a terminating NUL. */ char seq[]; }; diff --git a/src/expr.h b/src/expr.h index f14b936..871b120 100644 --- a/src/expr.h +++ b/src/expr.h @@ -146,7 +146,7 @@ struct bfs_expr { /** Total time spent running this predicate. */ struct timespec elapsed; - /** Auxilliary data for the evaluation function. */ + /** Auxiliary data for the evaluation function. */ union { /** Child expressions. */ struct bfs_exprs children; diff --git a/src/opt.c b/src/opt.c index aa41a6a..b50c1ef 100644 --- a/src/opt.c +++ b/src/opt.c @@ -122,7 +122,7 @@ static const char *const pred_names[] = { }; /** - * A contrained integer range. + * A constrained integer range. */ struct df_range { /** The (inclusive) minimum value. */ -- cgit v1.2.3