Skip to content

Commit

Permalink
kwset: fix spelling in comments
Browse files Browse the repository at this point in the history
Correct spelling mistakes noticed using Lucas De Marchi's codespell
tool.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Acked-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefano Lattarini authored and Junio C Hamano committed Apr 12, 2013
1 parent 0f7b4c2 commit 2fec81c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kwset.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
The author may be reached (Email) at the address mike@ai.mit.edu,
or (US mail) as Mike Haertel c/o Free Software Foundation. */

/* The algorithm implemented by these routines bears a startling resemblence
/* The algorithm implemented by these routines bears a startling resemblance
to one discovered by Beate Commentz-Walter, although it is not identical.
See "A String Matching Algorithm Fast on the Average," Technical Report,
IBM-Germany, Scientific Center Heidelberg, Tiergartenstrasse 15, D-6900
Expand Down Expand Up @@ -435,7 +435,7 @@ kwsprep (kwset_t kws)
/* Update the delta table for the descendents of this node. */
treedelta(curr->links, curr->depth, delta);

/* Compute the failure function for the decendents of this node. */
/* Compute the failure function for the descendants of this node. */
treefails(curr->links, curr->fail, kwset->trie);

/* Update the shifts at each node in the current node's chain
Expand Down

0 comments on commit 2fec81c

Please sign in to comment.