From 90aef80dd7ab61fda7f9db1b79bfdef49dd11b25 Mon Sep 17 00:00:00 2001 From: zdenop Date: Wed, 1 May 2019 11:37:50 +0200 Subject: [PATCH] fix documentation about datapath: ending "/" is not relevant --- src/api/baseapi.cpp | 2 +- src/api/baseapi.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/baseapi.cpp b/src/api/baseapi.cpp index 20a0c6ea92..61b38f8e78 100644 --- a/src/api/baseapi.cpp +++ b/src/api/baseapi.cpp @@ -341,7 +341,7 @@ void TessBaseAPI::PrintVariables(FILE *fp) const { } /** - * The datapath must be the name of the data directory (no ending /) or + * The datapath must be the name of the data directory or * some other file in which the data directory resides (for instance argv[0].) * The language is (usually) an ISO 639-3 string or nullptr will default to eng. * If numeric_mode is true, then only digits and Roman numerals will diff --git a/src/api/baseapi.h b/src/api/baseapi.h index c37c967eb2..d8ff11256a 100644 --- a/src/api/baseapi.h +++ b/src/api/baseapi.h @@ -186,8 +186,7 @@ class TESS_API TessBaseAPI { * NOTE that the only members that may be called before Init are those * listed above here in the class definition. * - * The datapath must be the name of the parent directory of tessdata and - * must end in / . Any name after the last / will be stripped. + * The datapath must be the name of the parent directory of tessdata. * The language is (usually) an ISO 639-3 string or nullptr will default to eng. * It is entirely safe (and eventually will be efficient too) to call * Init multiple times on the same instance to change language, or just