]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Fix spelling errors in code comments
authorElijah Newren <newren@gmail.com>
Tue, 5 Nov 2019 17:07:23 +0000 (17:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Nov 2019 07:00:54 +0000 (16:00 +0900)
Reported-by: Jens Schleusener <Jens.Schleusener@fossies.org>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
35 files changed:
apply.c
builtin/fetch.c
builtin/gc.c
builtin/pack-objects.c
commit-graph.c
commit.h
compat/mingw.h
compat/vcbuild/find_vs_env.bat
configure.ac
contrib/coccinelle/commit.cocci
contrib/completion/git-completion.bash
contrib/hooks/post-receive-email
convert.c
daemon.c
diff.c
dir.c
git-send-email.perl
gitweb/gitweb.perl
hashmap.c
hashmap.h
name-hash.c
parse-options.c
range-diff.h
read-cache.c
refs/refs-internal.h
repository.c
repository.h
rerere.c
sequencer.c
server-info.c
string-list.h
trace2/tr2_sid.c
unpack-trees.c
url.c
xdiff-interface.h

diff --git a/apply.c b/apply.c
index f8a046a6a5acbd36d14ca85b39e43b19c1d8e9c5..bd80eefad01a8270a51e89275188aef4ed88b651 100644 (file)
--- a/apply.c
+++ b/apply.c
@@ -4183,8 +4183,8 @@ static void show_rename_copy(struct patch *p)
                old_name = slash_old + 1;
                new_name = slash_new + 1;
        }
-       /* p->old_name thru old_name is the common prefix, and old_name and new_name
-        * through the end of names are renames
+       /* p->old_name through old_name is the common prefix, and old_name and
+        * new_name through the end of names are renames
         */
        if (old_name != p->old_name)
                printf(" %s %.*s{%s => %s} (%d%%)\n", renamecopy,
index 0c345b5dfe4b09e8d626815cb9909ef1f78e6338..c0f1b64ed73819771e7699428eafa03ae1818440 100644 (file)
@@ -1400,7 +1400,7 @@ static int do_fetch(struct transport *transport,
 
                /*
                 * We're setting the upstream configuration for the
-                * current branch. The relevent upstream is the
+                * current branch. The relevant upstream is the
                 * fetched branch that is meant to be merged with the
                 * current one, i.e. the one fetched to FETCH_HEAD.
                 *
index fadb45489f34a760f4c8f6c96c3cc5a5c5c115bd..3f76bf4aa73d1a05d7a6350da71ea628819ea30a 100644 (file)
@@ -458,7 +458,7 @@ static const char *lock_repo_for_gc(int force, pid_t* ret_pid)
 /*
  * Returns 0 if there was no previous error and gc can proceed, 1 if
  * gc should not proceed due to an error in the last run. Prints a
- * message and returns -1 if an error occured while reading gc.log
+ * message and returns -1 if an error occurred while reading gc.log
  */
 static int report_last_gc_error(void)
 {
@@ -601,7 +601,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
                if (detach_auto) {
                        int ret = report_last_gc_error();
                        if (ret < 0)
-                               /* an I/O error occured, already reported */
+                               /* an I/O error occurred, already reported */
                                exit(128);
                        if (ret == 1)
                                /* Last gc --auto failed. Skip this one. */
index 5876583220c7d15ace8f7d4fbc7a5c4cef7a8d3b..393c20a2d78b50f8852ed11bc9e943b27ba58d2e 100644 (file)
@@ -163,7 +163,7 @@ static void *get_delta(struct object_entry *entry)
        delta_buf = diff_delta(base_buf, base_size,
                               buf, size, &delta_size, 0);
        /*
-        * We succesfully computed this delta once but dropped it for
+        * We successfully computed this delta once but dropped it for
         * memory reasons. Something is very wrong if this time we
         * recompute and create a different delta.
         */
index fc4a43b8d6eb112f1c845882b32411c37a402e3b..936ea1b2197ab80f482f519def484c26a7099893 100644 (file)
@@ -461,7 +461,7 @@ static void prepare_commit_graph_one(struct repository *r, const char *obj_dir)
 /*
  * Return 1 if commit_graph is non-NULL, and 0 otherwise.
  *
- * On the first invocation, this function attemps to load the commit
+ * On the first invocation, this function attempts to load the commit
  * graph if the_repository is configured to have one.
  */
 static int prepare_commit_graph(struct repository *r)
index f5295ca7f3efe9b7665d1c6728814bfe2901d059..221cdaa34b826bc160048567ffdf4872e1b37c47 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -132,7 +132,7 @@ const void *repo_get_commit_buffer(struct repository *r,
 #endif
 
 /*
- * Tell the commit subsytem that we are done with a particular commit buffer.
+ * Tell the commit subsystem that we are done with a particular commit buffer.
  * The commit and buffer should be the input and return value, respectively,
  * from an earlier call to get_commit_buffer.  The buffer may or may not be
  * freed by this call; callers should not access the memory afterwards.
index 9ad204c57ce21d22550f7e28bc23bcbb0fa50e48..1a46334399c2d3b2ed558c6b3b347413a5afd7a5 100644 (file)
@@ -558,7 +558,7 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen);
 
 /*
  * A critical section used in the implementation of the spawn
- * functions (mingw_spawnv[p]e()) and waitpid(). Intialised in
+ * functions (mingw_spawnv[p]e()) and waitpid(). Initialised in
  * the replacement main() macro below.
  */
 extern CRITICAL_SECTION pinfo_cs;
index 40194dd2309bea21764f2b44c6b3571355cb1fbb..b35d264c0e6bed7471992ac50b52e6271ae69d65 100644 (file)
@@ -18,7 +18,7 @@ REM and MAKE, we must blend these two different worlds.  This script
 REM attempts to do that.
 REM ================================================================
 REM This BAT file starts in a plain (non-developer) command prompt,
-REM searches for the "best" commmand prompt setup script, installs
+REM searches for the "best" command prompt setup script, installs
 REM it into the current CMD process, and exports the various MSVC
 REM environment variables for use by MAKE.
 REM
index a43b4764023315695c8d691832a39aed8b861ce6..4d32d5e4327ddb26f11a3243e54d6be84e659629 100644 (file)
@@ -85,7 +85,7 @@ AC_DEFUN([GIT_PARSE_WITH],
 
 # GIT_PARSE_WITH_SET_MAKE_VAR(WITHNAME, VAR, HELP_TEXT)
 # -----------------------------------------------------
-# Set VAR to the value specied by --with-WITHNAME.
+# Set VAR to the value specified by --with-WITHNAME.
 # No verification of arguments is performed, but warnings are issued
 # if either 'yes' or 'no' is specified.
 # HELP_TEXT is presented when --help is called.
index d03453341e84c912e14d8b421b47857e7eb244b1..778e4704f6a2baa8484a13fea3a0cf4d2b35f44b 100644 (file)
@@ -20,7 +20,7 @@ expression s;
 + set_commit_tree(c, s)
   ...>}
 
-// These excluded functions must access c->maybe_tree direcly.
+// These excluded functions must access c->maybe_tree directly.
 // Note that if c->maybe_tree is written somewhere outside of these
 // functions, then the recommended transformation will be bogus with
 // repo_get_commit_tree() on the LHS.
index 00fbe6c03d8539f5c4813da674b591c85f022700..47c551091f28629b359e06a160dec109ad6e34d4 100644 (file)
@@ -550,7 +550,7 @@ __git_index_files ()
                                                 esc_idx, 1)
                        } else if (esc == "n") {
                                # Uh-oh, a newline character.
-                               # We cant reliably put a pathname
+                               # We cannot reliably put a pathname
                                # containing a newline into COMPREPLY,
                                # and the newline would create a mess.
                                # Skip this path.
@@ -565,7 +565,7 @@ __git_index_files ()
                        }
                }
                # Drop closing double quote, if there is one.
-               # (There isnt any if this is a directory, as it was
+               # (There is not any if this is a directory, as it was
                # already stripped with the trailing path components.)
                if (substr(p, length(p), 1) == "\"")
                        out = out substr(p, 1, length(p) - 1)
index 8747b84334f35fd378f51e6a9a433cfacc630960..ff565eb3d8811d04356c590e8d0a5c92288eb30b 100755 (executable)
@@ -329,7 +329,7 @@ generate_update_branch_email()
        #
        #  git rev-parse --not --all | grep -v $(git rev-parse $refname)
        #
-       # Get's us to something pretty safe (apart from the small time
+       # Gets us to something pretty safe (apart from the small time
        # between refname being read, and git rev-parse running - for that,
        # I give up)
        #
index 25ac525d5fa5ea5ac68f8a7a998fe2359b515530..8f670085fde326f9d7a4727a14d9e27390759215 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -418,7 +418,7 @@ static int encode_to_git(const char *path, const char *src, size_t src_len,
        if (!dst) {
                /*
                 * We could add the blob "as-is" to Git. However, on checkout
-                * we would try to reencode to the original encoding. This
+                * we would try to re-encode to the original encoding. This
                 * would fail and we would leave the user with a messed-up
                 * working tree. Let's try to avoid this by screaming loud.
                 */
index 9d2e0d20ef302aaeac02aaeba791509dd43a2712..fd669ed3b4278e9f999ed1ed33747a3e96f817e6 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -598,7 +598,7 @@ static void canonicalize_client(struct strbuf *out, const char *in)
  * Read the host as supplied by the client connection.
  *
  * Returns a pointer to the character after the NUL byte terminating the host
- * arguemnt, or 'extra_args' if there is no host arguemnt.
+ * argument, or 'extra_args' if there is no host argument.
  */
 static char *parse_host_arg(struct hostinfo *hi, char *extra_args, int buflen)
 {
@@ -652,7 +652,7 @@ static void parse_extra_args(struct hostinfo *hi, struct argv_array *env,
                 * service that will be run.
                 *
                 * If there ends up being a particular arg in the future that
-                * git-daemon needs to parse specificly (like the 'host' arg)
+                * git-daemon needs to parse specifically (like the 'host' arg)
                 * then it can be parsed here and not added to 'git_protocol'.
                 */
                if (*arg) {
diff --git a/diff.c b/diff.c
index afe4400a60e072f42e090f87aa32e84653edfd0a..087213466eb98af826f0c1e3877ae467503e09b1 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -2551,7 +2551,7 @@ static int scale_linear(int it, int width, int max_change)
        /*
         * make sure that at least one '-' or '+' is printed if
         * there is any change to this path. The easiest way is to
-        * scale linearly as if the alloted width is one column shorter
+        * scale linearly as if the allotted width is one column shorter
         * than it is, and then add 1 to the result.
         */
        return 1 + (it * (width - 1) / max_change);
@@ -3196,7 +3196,7 @@ static int is_conflict_marker(const char *line, int marker_size, unsigned long l
        for (cnt = 1; cnt < marker_size; cnt++)
                if (line[cnt] != firstchar)
                        return 0;
-       /* line[1] thru line[marker_size-1] are same as firstchar */
+       /* line[1] through line[marker_size-1] are same as firstchar */
        if (len < marker_size + 1 || !isspace(line[marker_size]))
                return 0;
        return 1;
diff --git a/dir.c b/dir.c
index 61f559f98008afe61e748fb1821fb45e0bec913f..9047373f6b5ae08d369c8ed78021b4c43c98b008 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -2489,7 +2489,7 @@ static int remove_dir_recurse(struct strbuf *path, int flag, int *kept_up)
                                 * wanted anyway
                                 */
                                continue;
-                       /* fall thru */
+                       /* fall through */
                } else if (S_ISDIR(st.st_mode)) {
                        if (!remove_dir_recurse(path, flag, &kept_down))
                                continue; /* happy */
index 5f92c89c1c1be5ba2fadedd1d7a8d013fb7577fd..dc95656f75c1c4a066665b91d31b387936998961 100755 (executable)
@@ -1228,7 +1228,7 @@ sub process_address_list {
 # domain name that corresponds the IP address in the HELO/EHLO
 # handshake. This is used to verify the connection and prevent
 # spammers from trying to hide their identity. If the DNS and IP don't
-# match, the receiveing MTA may deny the connection.
+# match, the receiving MTA may deny the connection.
 #
 # Here is a deny example of Net::SMTP with the default "localhost.localdomain"
 #
index 7fef19fe591c2dd077ec4688f20e3c7bec521f13..3d063e21557a1ede24ea36f4592e518c4cc177c3 100755 (executable)
@@ -1657,15 +1657,15 @@ sub quot_cec {
        my $cntrl = shift;
        my %opts = @_;
        my %es = ( # character escape codes, aka escape sequences
-               "\t" => '\t',   # tab            (HT)
-               "\n" => '\n',   # line feed      (LF)
-               "\r" => '\r',   # carrige return (CR)
-               "\f" => '\f',   # form feed      (FF)
-               "\b" => '\b',   # backspace      (BS)
-               "\a" => '\a',   # alarm (bell)   (BEL)
-               "\e" => '\e',   # escape         (ESC)
-               "\013" => '\v', # vertical tab   (VT)
-               "\000" => '\0', # nul character  (NUL)
+               "\t" => '\t',   # tab             (HT)
+               "\n" => '\n',   # line feed       (LF)
+               "\r" => '\r',   # carriage return (CR)
+               "\f" => '\f',   # form feed       (FF)
+               "\b" => '\b',   # backspace       (BS)
+               "\a" => '\a',   # alarm (bell)    (BEL)
+               "\e" => '\e',   # escape          (ESC)
+               "\013" => '\v', # vertical tab    (VT)
+               "\000" => '\0', # nul character   (NUL)
        );
        my $chr = ( (exists $es{$cntrl})
                    ? $es{$cntrl}
index 39c13110bc32f05f0cbb4ec1cf22bdc6ea6995b2..09813e1a46676c1475c1ad903f1d9358bf56827e 100644 (file)
--- a/hashmap.c
+++ b/hashmap.c
@@ -51,7 +51,7 @@ unsigned int memihash(const void *buf, size_t len)
 }
 
 /*
- * Incoporate another chunk of data into a memihash
+ * Incorporate another chunk of data into a memihash
  * computation.
  */
 unsigned int memihash_cont(unsigned int hash_seed, const void *buf, size_t len)
index bd2701549f55650748c7cfd5afd2dad6c2321f54..4e03c3ebdec700863157a5953d22467df911bafa 100644 (file)
--- a/hashmap.h
+++ b/hashmap.h
@@ -502,7 +502,7 @@ static inline void hashmap_disable_item_counting(struct hashmap *map)
 }
 
 /*
- * Re-enable item couting when adding/removing items.
+ * Re-enable item counting when adding/removing items.
  * If counting is currently disabled, it will force count them.
  * It WILL NOT automatically rehash them.
  */
index ceb1d7bd6f7c594160b8162f306afb37556dc0e5..d4fa6ba15fd43f58f4195abb173e6a8793513a20 100644 (file)
@@ -138,7 +138,7 @@ static int lazy_nr_dir_threads;
 
 /*
  * Set a minimum number of cache_entries that we will handle per
- * thread and use that to decide how many threads to run (upto
+ * thread and use that to decide how many threads to run (up to
  * the number on the system).
  *
  * For guidance setting the lower per-thread bound, see:
index b42f54d48b96c05a207ffb02eac8c235c2b723b0..60fae3ad213782dffa82e3c7dd246b47c566bf56 100644 (file)
@@ -623,7 +623,7 @@ static int show_gitcomp(const struct option *opts)
  * Scan and may produce a new option[] array, which should be used
  * instead of the original 'options'.
  *
- * Right now this is only used to preprocess and substitue
+ * Right now this is only used to preprocess and substitute
  * OPTION_ALIAS.
  */
 static struct option *preprocess_options(struct parse_opt_ctx_t *ctx,
index 08a50b6e98fc768f42e48b33c70ffbf17a7e8e4c..77347a9f883ce8d5a74af29b6c3fb3683bef489c 100644 (file)
@@ -6,7 +6,7 @@
 #define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60
 
 /*
- * Compare series of commmits in RANGE1 and RANGE2, and emit to the
+ * Compare series of commits in RANGE1 and RANGE2, and emit to the
  * standard output.  NULL can be passed to DIFFOPT to use the built-in
  * default.
  */
index 133f790fa4cd52e503da5ae6be3f78389f7674b7..06744287a11acd4f623eaaaee9a4ef1d4173542b 100644 (file)
@@ -1790,7 +1790,7 @@ static struct cache_entry *create_from_disk(struct mem_pool *ce_mem_pool,
                const unsigned char *cp = (const unsigned char *)name;
                size_t strip_len, previous_len;
 
-               /* If we're at the begining of a block, ignore the previous name */
+               /* If we're at the beginning of a block, ignore the previous name */
                strip_len = decode_varint(&cp);
                if (previous_ce) {
                        previous_len = previous_ce->ce_namelen;
index f2d8c0123a7724bca18eb76de71748d3760391ee..ff2436c0fb706d8d34de926eca0f481b74b3170f 100644 (file)
@@ -262,7 +262,7 @@ int refs_rename_ref_available(struct ref_store *refs,
  * after calling ref_iterator_advance() again or calling
  * ref_iterator_abort(), you must make a copy. When the iteration has
  * been exhausted, ref_iterator_advance() releases any resources
- * assocated with the iteration, frees the ref_iterator object, and
+ * associated with the iteration, frees the ref_iterator object, and
  * returns ITER_DONE. If you want to abort the iteration early, call
  * ref_iterator_abort(), which also frees the ref_iterator object and
  * any associated resources. If there was an internal error advancing
index 682c239fe3eda6c16b7be45fc5c920a325d61817..a4174ddb0629cdd690142fb42c5d4182492485c4 100644 (file)
@@ -200,9 +200,9 @@ int repo_submodule_init(struct repository *subrepo,
 
        if (repo_init(subrepo, gitdir.buf, worktree.buf)) {
                /*
-                * If initilization fails then it may be due to the submodule
+                * If initialization fails then it may be due to the submodule
                 * not being populated in the superproject's worktree.  Instead
-                * we can try to initilize the submodule by finding it's gitdir
+                * we can try to initialize the submodule by finding it's gitdir
                 * in the superproject's 'modules' directory.  In this case the
                 * submodule would not have a worktree.
                 */
index fe421978130fd443b24de16152e8feca0679372b..040057dea6f4f32bf11d429b3ad10a37d4b10520 100644 (file)
@@ -172,7 +172,7 @@ void repo_clear(struct repository *repo);
  * be allocated if needed.
  *
  * Return the number of index entries in the populated index or a value less
- * than zero if an error occured.  If the repository's index has already been
+ * than zero if an error occurred.  If the repository's index has already been
  * populated then the number of entries will simply be returned.
  */
 int repo_read_index(struct repository *repo);
index 3e51fdfe589ce67c5a745845907e15909f4ed905..9281131a9f10cdf1f83c54b42e4fd7034ded16db 100644 (file)
--- a/rerere.c
+++ b/rerere.c
@@ -431,7 +431,7 @@ static int handle_conflict(struct strbuf *out, struct rerere_io *io,
  * and NUL concatenated together.
  *
  * Return 1 if conflict hunks are found, 0 if there are no conflict
- * hunks and -1 if an error occured.
+ * hunks and -1 if an error occurred.
  */
 static int handle_path(unsigned char *hash, struct rerere_io *io, int marker_size)
 {
index 9d5964fd81fe09985c9283c49ad83f98b055d661..93e54a0497e2b841ca8523d666358b35fae14de7 100644 (file)
@@ -131,7 +131,7 @@ static GIT_PATH_FUNC(rebase_path_rewritten_pending,
        "rebase-merge/rewritten-pending")
 
 /*
- * The path of the file containig the OID of the "squash onto" commit, i.e.
+ * The path of the file containing the OID of the "squash onto" commit, i.e.
  * the dummy commit used for `reset [new root]`.
  */
 static GIT_PATH_FUNC(rebase_path_squash_onto, "rebase-merge/squash-onto")
@@ -4644,7 +4644,7 @@ static int make_script_with_merges(struct pretty_print_context *pp,
                                label_oid(oid, "branch-point", &state);
                }
 
-               /* Add HEAD as implict "tip of branch" */
+               /* Add HEAD as implicit "tip of branch" */
                if (!iter->next)
                        tips_tail = &commit_list_insert(iter->item,
                                                        tips_tail)->next;
@@ -4826,7 +4826,7 @@ void todo_list_add_exec_commands(struct todo_list *todo_list,
         * are considered part of the pick, so we insert the commands *after*
         * those chains if there are any.
         *
-        * As we insert the exec commands immediatly after rearranging
+        * As we insert the exec commands immediately after rearranging
         * any fixups and before the user edits the list, a fixup chain
         * can never contain comments (any comments are empty picks that
         * have been commented out because the user did not specify
index 4d8199b1d916f70f136b767132916fdebb73318e..bae2cdfd5127e42ca66622270326d8094fe13f40 100644 (file)
@@ -93,7 +93,7 @@ static int update_info_file(char *path,
                uic.old_fp = fopen_or_warn(path, "r");
 
        /*
-        * uic_printf will compare incremental comparison aginst old_fp
+        * uic_printf will compare incremental comparison against old_fp
         * and mark uic as stale if needed
         */
        ret = generate(&uic);
index f964399949ce58dc1edd561fb0614776dfa2d01f..7bb0ad07e61774b595b6b448a15a5d36a5cc8877 100644 (file)
@@ -179,7 +179,7 @@ void string_list_remove(struct string_list *list, const char *string,
 
 /**
  * Check if the given string is part of a sorted list. If it is part of the list,
- * return the coresponding string_list_item, NULL otherwise.
+ * return the corresponding string_list_item, NULL otherwise.
  */
 struct string_list_item *string_list_lookup(struct string_list *list, const char *string);
 
index 6948fd41086f91e7b2439918666cad0320909a6a..dc6e75ef13151fe011c738f8e3dbe706e24c4773 100644 (file)
@@ -19,7 +19,7 @@ static int tr2sid_nr_git_parents;
  *    "H<first_8_chars_of_sha1_of_hostname>"
  *    "Localhost" when no hostname.
  *
- * where <process> is a 9 character string containing the least signifcant
+ * where <process> is a 9 character string containing the least significant
  * 32 bits in the process-id.
  *    "P<pid>"
  * (This is an abribrary choice.  On most systems pid_t is a 32 bit value,
index 33ea7810d8cfbb819fcfc76ca8e71aa03c66f3be..28cbd19570a95815c5d2d40a4bb305e8be143d2a 100644 (file)
@@ -275,9 +275,9 @@ static int check_submodule_move_head(const struct cache_entry *ce,
 }
 
 /*
- * Preform the loading of the repository's gitmodules file.  This function is
+ * Perform the loading of the repository's gitmodules file.  This function is
  * used by 'check_update()' to perform loading of the gitmodules file in two
- * differnt situations:
+ * different situations:
  * (1) before removing entries from the working tree if the gitmodules file has
  *     been marked for removal.  This situation is specified by 'state' == NULL.
  * (2) before checking out entries to the working tree if the gitmodules file
diff --git a/url.c b/url.c
index e34e5e751737aeb10a6afecc0a2cdf0ec78fa5fc..e04bd60b6bead493e3236949b5b4a837c729c146 100644 (file)
--- a/url.c
+++ b/url.c
@@ -5,7 +5,7 @@ int is_urlschemechar(int first_flag, int ch)
 {
        /*
         * The set of valid URL schemes, as per STD66 (RFC3986) is
-        * '[A-Za-z][A-Za-z0-9+.-]*'. But use sightly looser check
+        * '[A-Za-z][A-Za-z0-9+.-]*'. But use slightly looser check
         * of '[A-Za-z0-9][A-Za-z0-9+.-]*' because earlier version
         * of check used '[A-Za-z0-9]+' so not to break any remote
         * helpers.
index ede4246bbd3397086f90217539a2d07a35a4b986..93df26900c2bfa923f1e871924ef319a6786fa72 100644 (file)
@@ -44,7 +44,7 @@ void discard_hunk_line(void *priv,
  * Compare the strings l1 with l2 which are of size s1 and s2 respectively.
  * Returns 1 if the strings are deemed equal, 0 otherwise.
  * The `flags` given as XDF_WHITESPACE_FLAGS determine how white spaces
- * are treated for the comparision.
+ * are treated for the comparison.
  */
 int xdiff_compare_lines(const char *l1, long s1,
                        const char *l2, long s2, long flags);