Lucene.Net.Core.Util.UnicodeUtil.ToCharArray(): corrected spelling of threshold
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/3d14c8eb Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/3d14c8eb Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/3d14c8eb Branch: refs/heads/api-work Commit: 3d14c8eb211079340298b3e468e89ca3bd29b09a Parents: d284bd0 Author: Shad Storhaug <[email protected]> Authored: Fri Mar 24 18:16:10 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Fri Mar 24 18:16:10 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.Core/Util/UnicodeUtil.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3d14c8eb/src/Lucene.Net.Core/Util/UnicodeUtil.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Core/Util/UnicodeUtil.cs b/src/Lucene.Net.Core/Util/UnicodeUtil.cs index 31a998c..1ee21c6 100644 --- a/src/Lucene.Net.Core/Util/UnicodeUtil.cs +++ b/src/Lucene.Net.Core/Util/UnicodeUtil.cs @@ -722,13 +722,13 @@ namespace Lucene.Net.Util { throw new System.ArgumentException(); } - int countThreashhold = 1024; // If the number of chars exceeds this, we count them instead of allocating count * 2 + int countThreashold = 1024; // If the number of chars exceeds this, we count them instead of allocating count * 2 // LUCENENET: as a first approximation, assume each codepoint // is 2 characters (since it cannot be longer than this) int arrayLength = count * 2; - // LUCENENET: if we go over the threashhold, count the number of + // LUCENENET: if we go over the threashold, count the number of // chars we will need so we can allocate the precise amount of memory - if (count > countThreashhold) + if (count > countThreashold) { arrayLength = 0; for (int r = offset, e = offset + count; r < e; ++r)
