summaryrefslogtreecommitdiff
path: root/src/libs
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2021-11-04 21:01:10 +1100
committerG. Branden Robinson <g.branden.robinson@gmail.com>2021-11-05 00:36:58 +1100
commit9be5ee0dc8f2e309b7df32da693ec1b08ef0c25d (patch)
tree0383690dc33ac5c95c71c2a88e7a421b41ff2fbd /src/libs
parentd9520420aa5800845c110ecbd066add5f7ab7fb7 (diff)
downloadgroff-git-9be5ee0dc8f2e309b7df32da693ec1b08ef0c25d.tar.gz
[troff]: Clarify diagnostic warning.
* src/roff/troff/env.cpp (environment::set_font): Clarify diagnostic warning. Also tweak style in libgroff diagnostic message; we say "non-negative" (with a hard hyphen) everywhere else.
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/libgroff/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/libgroff/font.cpp b/src/libs/libgroff/font.cpp
index 3ade71ce0..033428b1c 100644
--- a/src/libs/libgroff/font.cpp
+++ b/src/libs/libgroff/font.cpp
@@ -1107,7 +1107,7 @@ bool font::load_desc()
}
if (sscanf(p, "%d", &nfonts) != 1 || nfonts <= 0) {
t.error("expected first argument to 'fonts' directive to be a"
- " nonnegative number, got '%1'", p);
+ " non-negative number, got '%1'", p);
return false;
}
font_name_table = (const char **)new char *[nfonts+1];