dnaber 2004/11/23 11:54:33 Modified: src/java/org/apache/lucene/search FuzzyTermEnum.java Log: fixing typos in comments Revision Changes Path 1.14 +2 -2 jakarta-lucene/src/java/org/apache/lucene/search/FuzzyTermEnum.java Index: FuzzyTermEnum.java =================================================================== RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/FuzzyTermEnum.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- FuzzyTermEnum.java 23 Nov 2004 19:22:24 -0000 1.13 +++ FuzzyTermEnum.java 23 Nov 2004 19:54:32 -0000 1.14 @@ -205,7 +205,7 @@ final int m = target.length(); final int n = text.length(); if (n == 0) { - //we don't have antyhing to compare. That means if we just add + //we don't have anything to compare. That means if we just add //the letters for m we get the new word return prefix.length() == 0 ? 0.0f : 1.0f - ((float) m / prefix.length()); } @@ -221,7 +221,7 @@ //for example "pre" length is 3 and "prefixes" length is 8. We can see that //given this optimal circumstance, the edit distance cannot be less than 5. //which is 8-3 or more precisesly Math.abs(3-8). - //if our maximum edit distance is 4, than we can discard this word + //if our maximum edit distance is 4, then we can discard this word //without looking at it. return 0.0f; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]