groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 14/17: [troff]: Clarify diagnostics.


From: G. Branden Robinson
Subject: [groff] 14/17: [troff]: Clarify diagnostics.
Date: Fri, 25 Jun 2021 18:05:20 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit feb580a41484a7a0d4747f78a93ae0c4eff26d8d
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jun 25 11:46:45 2021 +1000

    [troff]: Clarify diagnostics.
    
    * src/roff/troff/reg.cpp (reg::set_increment): Update diagnostic
      to unabbreviate "auto".
    
      (reg::alter_format): Update diagnostic to say "assign" instead of
      "alter", since the documentation consistently uses the former term.
---
 ChangeLog              | 10 ++++++++++
 src/roff/troff/reg.cpp |  4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ccfea30..cbdf7e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2021-06-25  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       [troff]: Clarify diagnostics.
+
+       * src/roff/troff/reg.cpp (reg::set_increment): Update diagnostic
+       to unabbreviate "auto".
+       (reg::alter_format): Update diagnostic to say "assign" instead
+       of "alter", since the documentation consistently uses the former
+       term.
+
+2021-06-25  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [troff]: Slightly refactor.  Make the source code slightly more
        accessible by using a `bool` type for a member function's
        default parameter used as a Boolean, and comment it at call
diff --git a/src/roff/troff/reg.cpp b/src/roff/troff/reg.cpp
index 6f17e91..fc8357c 100644
--- a/src/roff/troff/reg.cpp
+++ b/src/roff/troff/reg.cpp
@@ -42,12 +42,12 @@ void reg::decrement()
 
 void reg::set_increment(units /*n*/)
 {
-  error("can't auto increment read-only register");
+  error("can't automatically increment read-only register");
 }
 
 void reg::alter_format(char /*f*/, int /*w*/)
 {
-  error("can't alter format of read-only register");
+  error("can't assign format of read-only register");
 }
 
 const char *reg::get_format()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]