Skip to content

Commit 90aef80

Browse files
committed
fix documentation about datapath: ending "/" is not relevant
1 parent 087576f commit 90aef80

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/api/baseapi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void TessBaseAPI::PrintVariables(FILE *fp) const {
341341
}
342342

343343
/**
344-
* The datapath must be the name of the data directory (no ending /) or
344+
* The datapath must be the name of the data directory or
345345
* some other file in which the data directory resides (for instance argv[0].)
346346
* The language is (usually) an ISO 639-3 string or nullptr will default to eng.
347347
* If numeric_mode is true, then only digits and Roman numerals will

src/api/baseapi.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ class TESS_API TessBaseAPI {
186186
* NOTE that the only members that may be called before Init are those
187187
* listed above here in the class definition.
188188
*
189-
* The datapath must be the name of the parent directory of tessdata and
190-
* must end in / . Any name after the last / will be stripped.
189+
* The datapath must be the name of the parent directory of tessdata.
191190
* The language is (usually) an ISO 639-3 string or nullptr will default to eng.
192191
* It is entirely safe (and eventually will be efficient too) to call
193192
* Init multiple times on the same instance to change language, or just

0 commit comments

Comments
 (0)