Skip to content

Commit c3d1ef4

Browse files
authored
Merge pull request #82 from Stigjb/penaly-penalty-typo
Fix typo penaly -> penalty
2 parents bfdcbbf + d3a7a3e commit c3d1ef4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jamspell/spell_corrector.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ std::wstring TSpellCorrector::FixFragmentNormalized(const std::wstring& text) co
245245
return result;
246246
}
247247

248-
void TSpellCorrector::SetPenalty(double knownWordsPenaly, double unknownWordsPenalty) {
249-
KnownWordsPenalty = knownWordsPenaly;
248+
void TSpellCorrector::SetPenalty(double knownWordsPenalty, double unknownWordsPenalty) {
249+
KnownWordsPenalty = knownWordsPenalty;
250250
UnknownWordsPenalty = unknownWordsPenalty;
251251
}
252252

jamspell/spell_corrector.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TSpellCorrector {
1616
std::vector<std::wstring> GetCandidates(const std::vector<std::wstring>& sentence, size_t position) const;
1717
std::wstring FixFragment(const std::wstring& text) const;
1818
std::wstring FixFragmentNormalized(const std::wstring& text) const;
19-
void SetPenalty(double knownWordsPenaly, double unknownWordsPenalty);
19+
void SetPenalty(double knownWordsPenalty, double unknownWordsPenalty);
2020
void SetMaxCandiatesToCheck(size_t maxCandidatesToCheck);
2121
const NJamSpell::TLangModel& GetLangModel() const;
2222
private:

0 commit comments

Comments
 (0)