From c4fb0d010ffa193303959960f17f6da363463e23 Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Tue, 23 Nov 2004 19:54:32 +0000 Subject: [PATCH] fixing typos in comments git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150662 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/search/FuzzyTermEnum.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/lucene/search/FuzzyTermEnum.java b/src/java/org/apache/lucene/search/FuzzyTermEnum.java index aebda1be70f..5d0160b7f97 100644 --- a/src/java/org/apache/lucene/search/FuzzyTermEnum.java +++ b/src/java/org/apache/lucene/search/FuzzyTermEnum.java @@ -205,7 +205,7 @@ public final class FuzzyTermEnum extends FilteredTermEnum { 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 @@ public final class FuzzyTermEnum extends FilteredTermEnum { //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; }