Skip to content

Commit ce6a664

Browse files
fix typo
1 parent f17571e commit ce6a664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class TranslationMapping
1515

1616
private List<int> originalIndexs = new List<int>();
1717
private List<int> translatedIndexs = new List<int>();
18-
private int translaedLength = 0;
18+
private int translatedLength = 0;
1919

2020
public string key { get; private set; }
2121

@@ -32,13 +32,13 @@ public void AddNewIndex(int originalIndex, int translatedIndex, int length)
3232
originalIndexs.Add(originalIndex);
3333
translatedIndexs.Add(translatedIndex);
3434
translatedIndexs.Add(translatedIndex + length);
35-
translaedLength += length - 1;
35+
translatedLength += length - 1;
3636
}
3737

3838
public int MapToOriginalIndex(int translatedIndex)
3939
{
4040
if (translatedIndex > translatedIndexs.Last())
41-
return translatedIndex - translaedLength - 1;
41+
return translatedIndex - translatedLength - 1;
4242

4343
int lowerBound = 0;
4444
int upperBound = originalIndexs.Count - 1;

0 commit comments

Comments
 (0)