Skip to content

Commit 11b2a4d

Browse files
committed
api: Fix typos in comments (all found by codespell)
Signed-off-by: Stefan Weil <[email protected]>
1 parent 48171de commit 11b2a4d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/baseapi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ char* TessBaseAPI::GetUNLVText() {
16601660
word->word->space() > 0 &&
16611661
!word->word->flag(W_FUZZY_NON) &&
16621662
!word->word->flag(W_FUZZY_SP)) {
1663-
/* Write a space to separate from preceeding good text */
1663+
/* Write a space to separate from preceding good text */
16641664
*ptr++ = ' ';
16651665
last_char_was_tilde = false;
16661666
}

api/pdfrenderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void TessPDFRenderer::AppendPDFObject(const char *data) {
178178
AppendString((const char *)data);
179179
}
180180

181-
// Helper function to prevent us from accidentaly writing
181+
// Helper function to prevent us from accidentally writing
182182
// scientific notation to an HOCR or PDF file. Besides, three
183183
// decimal points are all you really need.
184184
double prec(double x) {

api/tesseractmain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int main(int argc, char **argv) {
227227
}
228228

229229
// We have 2 possible sources of pagesegmode: a config file and
230-
// the command line. For backwards compatability reasons, the
230+
// the command line. For backwards compatibility reasons, the
231231
// default in tesseract is tesseract::PSM_SINGLE_BLOCK, but the
232232
// default for this program is tesseract::PSM_AUTO. We will let
233233
// the config file take priority, so the command-line default

0 commit comments

Comments
 (0)