]> git.neil.brown.name Git - wiggle.git/commitdiff
Fix some typos.
authorCarlos Maddela <e7appew@gmail.com>
Thu, 24 Jan 2019 10:04:57 +0000 (21:04 +1100)
committerCarlos Maddela <e7appew@gmail.com>
Thu, 24 Jan 2019 10:15:57 +0000 (21:15 +1100)
DOC/Algorithm
ReadMe.c
bestmatch.c
ccan/hash/hash.c
ccan/hash/hash.h

index 515ba071e4548c52124057c85b5f8df37dc5f0ac..cb2ec4825ad9cb91976c7395578af18fcc9cd12c 100644 (file)
@@ -23,7 +23,7 @@ side and build up the full path using linear space and only doubling
 your work.
 
 Wiggle takes a different approach.  Finding where the snakes cross
-seemed awkward to me, and having two blocks of similiar but not
+seemed awkward to me, and having two blocks of similar but not
 identical code (one to search forward, one to search backwards) didn't
 appeal at all.
 
index e76a04beb2df0466d4c79de1c86dc5372bc0572a..c559a58bb8b476362075348b780f0e8067035107 100644 (file)
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -119,7 +119,7 @@ char HelpExtract[] = "\n"
 char HelpDiff[] = "\n"
 "wiggle --diff [-wl] [-p12] [-R]  file-or-patch [file-or-patch]\n"
 "\n"
-"The diff function will report the differencs and similarities between\n"
+"The diff function will report the differences and similarities between\n"
 "two files in a format similar to 'diff -u'.  With --word mode\n"
 "(the default) word-wise differences are displayed on lines starting\n"
 "with a '|'.  With --line mode, only whole lines are considered\n"
index d1dcacfeee50f7ef04030d351faf4ddbf9e1cd8e..eb3559284f9609be6057248f2e31911a33c30a3d 100644 (file)
@@ -276,7 +276,7 @@ static void find_best(struct file *a, struct file *b,
  * in line-mode are interesting) and words that start with
  * and alphanumeric are interesting.  This excludes spaces and
  * special characters in word mode
- * Doing a best-fit comparision on only interesting words is
+ * Doing a best-fit comparison on only interesting words is
  * much faster than on all words, and is nearly as good
  */
 
index 2659b92235b50058a1cdb6474dc1f9b6258fb3e4..cc58da638f46efc4778864fb67c3befa3754ea07 100644 (file)
@@ -9,7 +9,7 @@ if SELF_TEST is defined.  You can use this free for any purpose.  It's in
 the public domain.  It has no warranty.
 
 You probably want to use hashlittle().  hashlittle() and hashbig()
-hash byte arrays.  hashlittle() is is faster than hashbig() on
+hash byte arrays.  hashlittle() is faster than hashbig() on
 little-endian machines.  Intel and AMD are little-endian machines.
 On second thought, you probably want hashlittle2(), which is identical to
 hashlittle() except it returns two 32-bit hashes for the price of one.  
@@ -280,7 +280,7 @@ static uint32_t hashlittle( const void *key, size_t length, uint32_t *val2 )
      * rest of the string.  Every machine with memory protection I've seen
      * does it on word boundaries, so is OK with this.  But VALGRIND will
      * still catch it and complain.  The masking trick does make the hash
-     * noticably faster for short strings (like English words).
+     * noticeably faster for short strings (like English words).
      *
      * Not on my testing with gcc 4.5 on an intel i5 CPU, at least --RR.
      */
@@ -457,7 +457,7 @@ static uint32_t hashbig( const void *key, size_t length, uint32_t *val2)
      * rest of the string.  Every machine with memory protection I've seen
      * does it on word boundaries, so is OK with this.  But VALGRIND will
      * still catch it and complain.  The masking trick does make the hash
-     * noticably faster for short strings (like English words).
+     * noticeably faster for short strings (like English words).
      *
      * Not on my testing with gcc 4.5 on an intel i5 CPU, at least --RR.
      */
index 0400e6a3b29bbc4505e707ed5231ed197ad6f22a..5bbef5d4b69b15b94333dc4b21ad377d193413d4 100644 (file)
@@ -34,7 +34,7 @@
  *     #include <stdio.h>
  *     #include <string.h>
  *
- *     // Simple demonstration: idential strings will have the same hash, but
+ *     // Simple demonstration: identical strings will have the same hash, but
  *     // two different strings will probably not.
  *     int main(int argc, char *argv[])
  *     {
@@ -163,7 +163,7 @@ static inline uint32_t hash_string(const char *string)
  *     #include <stdio.h>
  *     #include <string.h>
  *
- *     // Simple demonstration: idential strings will have the same hash, but
+ *     // Simple demonstration: identical strings will have the same hash, but
  *     // two different strings will probably not.
  *     int main(int argc, char *argv[])
  *     {