Skip to content

Commit 0bd234d

Browse files
authored
misc: fix typos (apache#1384)
1 parent 9566bec commit 0bd234d

10 files changed

Lines changed: 12 additions & 17 deletions

File tree

.github/linters/codespell.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ aliase
1212
aline
1313
alle
1414
allo
15-
allocte
16-
allong
1715
alot
1816
alpha-numeric
1917
alredy
@@ -25,7 +23,6 @@ analyer
2523
andd
2624
ane
2725
anothers
28-
appropropriate
2926
arent
3027
assemblie
3128
ative
@@ -49,8 +46,6 @@ childs
4946
classs
5047
collapsable
5148
commend
52-
commiting
53-
commmand
5449
commun
5550
comparision
5651
compatability

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ New features
13001300
new expert getReader() method. this method returns a reader that
13011301
searches the full index, including any uncommitted changes in the
13021302
current IndexWriter session. this should result in a faster
1303-
turnaround than the normal approach of commiting the changes and
1303+
turnaround than the normal approach of committing the changes and
13041304
then reopening a reader. (Jason Rutherglen via Mike McCandless)
13051305

13061306
* LUCENE-1603: Added new MultiTermQueryWrapperFilter, to wrap any

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
<!-- Settings to override the above Version of Builds. These can be used to
109109
"freeze" the build number for a release, so whether building within
110-
an IDE or from the commmand line, the version is always what is
110+
an IDE or from the command line, the version is always what is
111111
in Version.props, if it exists and the PrepareForBuild argument
112112
passed into build.ps1 is 'false'. -->
113113
<Import Project="version.props" Condition="Exists('version.props')" />

src/Lucene.Net.Analysis.Common/Analysis/Pattern/PatternTokenizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public override bool IncrementToken()
111111
{
112112
do
113113
{
114-
// We have alredy parsed from this index, go to the next token.
114+
// We have already parsed from this index, go to the next token.
115115
if (!isReset && matcher.Groups[group].Index == index)
116116
{
117117
continue;

src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ public SystemPropertyData()
504504
TestAwaitsFix = SystemProperties.GetPropertyAsBoolean(SYSPROP_AWAITSFIX, false);
505505
TestSlow = SystemProperties.GetPropertyAsBoolean(SYSPROP_SLOW, true); // LUCENENET specific - made default true, as per the docs
506506
TestThrottling = TestNightly ? Throttling.SOMETIMES : Throttling.NEVER;
507-
LeaveTemporary = LoadLeaveTemorary();
507+
LeaveTemporary = LoadLeaveTemporary();
508508
FailOnTestFixtureOneTimeSetUpError = SystemProperties.GetPropertyAsBoolean("tests:failontestfixtureonetimesetuperror", true);
509509
}
510510

@@ -569,7 +569,7 @@ public SystemPropertyData()
569569
/// Leave temporary files on disk, even on successful runs. </summary>
570570
public bool LeaveTemporary { get; }
571571

572-
private static bool LoadLeaveTemorary()
572+
private static bool LoadLeaveTemporary()
573573
{
574574
bool defaultValue = false;
575575
// LUCENENET specific - reformatted with :
@@ -1162,7 +1162,7 @@ public static SegmentReader GetOnlySegmentReader(DirectoryReader reader)
11621162
/// problems with <see cref="FieldCache.DEFAULT"/>.
11631163
/// <para>
11641164
/// If any problems are found, they are logged to <see cref="Console.Error"/>
1165-
/// (allong with the msg) when the Assertion is thrown.
1165+
/// (along with the msg) when the Assertion is thrown.
11661166
/// </para>
11671167
/// <para>
11681168
/// This method is called by <see cref="TearDown()"/> after every test method,
@@ -3140,7 +3140,7 @@ private static void CleanupTemporaryFiles()
31403140
tempDirBasePath = tempDirBase?.FullName;
31413141
tempDirBase = null;
31423142

3143-
// LUCENENET: The stack order is alredy reversed, so no need to do that here as in Lucene
3143+
// LUCENENET: The stack order is already reversed, so no need to do that here as in Lucene
31443144
everything = cleanupQueue.ToArray();
31453145
cleanupQueue.Clear();
31463146
}

src/Lucene.Net.Tests/Index/TestIndexWriterCommit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public virtual void TestCommitOnCloseForceMerge()
310310
writer = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random)).SetOpenMode(OpenMode.APPEND));
311311
writer.ForceMerge(1);
312312

313-
// Open a reader before closing (commiting) the writer:
313+
// Open a reader before closing (committing) the writer:
314314
DirectoryReader reader = DirectoryReader.Open(dir);
315315

316316
// Reader should see index as multi-seg at this

src/Lucene.Net/Support/ObsoleteAPI/ReaderWriterLockSlimExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Lucene.Net.Support.Threading
2727
///
2828
/// LUCENENET specific
2929
/// </summary>
30-
[Obsolete("Using these extensions will allocte memory. New code should call EnterReadLock(), ExitReadLock(), EnterWriteLock() or ExitWriteLock() directly in a try/finally block. This class will be removed in 4.8.0 release candidate.")]
30+
[Obsolete("Using these extensions will allocate memory. New code should call EnterReadLock(), ExitReadLock(), EnterWriteLock() or ExitWriteLock() directly in a try/finally block. This class will be removed in 4.8.0 release candidate.")]
3131
internal static class ReaderWriterLockSlimExtensions
3232
{
3333
private sealed class ReadLockToken : IDisposable

src/dotnet/tools/Lucene.Net.Tests.Cli/InstallationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public override void OneTimeTearDown()
8888

8989
[Test]
9090
[LuceneNetSpecific]
91-
public virtual void TestWithoutCommmand()
91+
public virtual void TestWithoutCommand()
9292
{
9393
// Try running without any command. We should get the usage on the stdOut.
9494
// This is just a smoke test to make sure we can run the tool after it is installed.

websites/site/contributing/how-to-setup-java-lucene-debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The Java Lucene 4.8 repository indicates that the following development environm
1616
+ IntelliJ - IntelliJ IDEA can import the project out of the box.
1717
+ NetBeans - Not tested.
1818

19-
In this document however, we will be using Eclipse because it's open source and widely used. Because Java Lucene 4.8 uses an old version of the Java JDK that has known security issues, the approach we take here is to setup a virtual machine vis VirtualBox to quarantine our use of the insecure JDK.
19+
In this document however, we will be using Eclipse because it's open source and widely used. Because Java Lucene 4.8 uses an old version of the Java JDK that has known security issues, the approach we take here is to setup a virtual machine via VirtualBox to quarantine our use of the insecure JDK.
2020

2121

2222
## Setting up VirtualBox

websites/site/release-notes/version-4.8.0-beta00017.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ version: 4.8.0-beta00017
128128
- Renamed classes from using Iterable and Iterator to Enumerable and Enumerator, where appropriate - some were missed in [#698](https://github.com/apache/lucenenet/pull/698).
129129
- Normalize anonymous class names/accessibility. Fixes [#666](https://github.com/apache/lucenenet/pull/666).
130130
- Lucene.Net.Util.Fst.BytesStore: Suffix anonymous classes with "AnonymousClass". See [#666](https://github.com/apache/lucenenet/pull/666).
131-
- Renamed classes from using Iterable and Iterator to Enumerable and Enumerator, where appropropriate. See [#279](https://github.com/apache/lucenenet/pull/279).
131+
- Renamed classes from using Iterable and Iterator to Enumerable and Enumerator, where appropriate. See [#279](https://github.com/apache/lucenenet/pull/279).
132132
- Add a nested comment explaining why this method is empty. Fixes [#681](https://github.com/apache/lucenenet/pull/681).
133133
- Lucene.Net.Benchmark.Support.TagSoup: Reviewed API for accessibility issues. Fixed error handling and guard clauses. Changed to generic collections. Renamed method arguments.
134134
- Prefer 'AsSpan' over 'Substring' when span-based overloads are available. Fixes [#675](https://github.com/apache/lucenenet/pull/675).

0 commit comments

Comments
 (0)