From 90f7d86256e8a880b96db2a12bc1c14d2764160a Mon Sep 17 00:00:00 2001 From: Joe Kang Date: Tue, 19 Sep 2023 13:07:12 -0700 Subject: [PATCH] misc: typos in comments fix --- common/homography.c | 2 +- common/homography.h | 2 +- common/pjpeg.c | 2 +- common/string_util.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/homography.c b/common/homography.c index 48e7f02d..54ab47eb 100644 --- a/common/homography.c +++ b/common/homography.c @@ -253,7 +253,7 @@ matd_t *homography_compute(zarray_t *correspondences, int flags) // And that the homography is equal to the projection matrix times the // model matrix, recover the model matrix (which is returned). Note // that the third column of the model matrix is missing in the -// expresison below, reflecting the fact that the homography assumes +// expression below, reflecting the fact that the homography assumes // all points are at z=0 (i.e., planar) and that the element of z is // thus omitted. (3x1 instead of 4x1). // diff --git a/common/homography.h b/common/homography.h index c92193fa..b1560c37 100644 --- a/common/homography.h +++ b/common/homography.h @@ -148,7 +148,7 @@ static inline void homography_project(const matd_t *H, double x, double y, doubl // // And that the homography is equal to the projection matrix times the model matrix, // recover the model matrix (which is returned). Note that the third column of the model -// matrix is missing in the expresison below, reflecting the fact that the homography assumes +// matrix is missing in the expression below, reflecting the fact that the homography assumes // all points are at z=0 (i.e., planar) and that the element of z is thus omitted. // (3x1 instead of 4x1). // diff --git a/common/pjpeg.c b/common/pjpeg.c index acc61f07..7e3d089a 100644 --- a/common/pjpeg.c +++ b/common/pjpeg.c @@ -96,7 +96,7 @@ static uint8_t mjpeg_dht[] = { // header 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B, ///////////////////////////////////////////////////////////// - // chrominance DC coefficents + // chrominance DC coefficients // DC table 1 0x01, // code lengths diff --git a/common/string_util.h b/common/string_util.h index 2625838c..9a7cd1e4 100644 --- a/common/string_util.h +++ b/common/string_util.h @@ -86,7 +86,7 @@ int str_diff_idx(const char * a, const char * b); * contain the delimiter. The original string will remain unchanged. * If str is composed of all delimiters, an empty array will be returned. * - * It is the caller's responsibilty to free the returned zarray, as well as + * It is the caller's responsibility to free the returned zarray, as well as * the strings contained within it, e.g.: * * zarray_t *za = str_split("this is a haystack", " ");