summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-07-23 10:23:35 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-07-23 10:24:24 -0700
commit90256285e107641b064d6ec51a9c5bb03c3eee6a (patch)
tree48205b8d61a4ac46a26ee57d5b13973609b10d0c /src/editfns.c
parent57c4bc146b7e17b6f662604047cb5d10982f962c (diff)
downloademacs-90256285e107641b064d6ec51a9c5bb03c3eee6a.tar.gz
emacs-90256285e107641b064d6ec51a9c5bb03c3eee6a.tar.bz2
emacs-90256285e107641b064d6ec51a9c5bb03c3eee6a.zip
(format "%#x" 0) yields "0", not "0x0"
* doc/lispref/strings.texi (Formatting Strings): * src/editfns.c (Fformat): Document this.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c
index ccc0d27b139..09f836c3eb4 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -4202,7 +4202,7 @@ The - and 0 flags affect the width specifier, as described below.
The # flag means to use an alternate display form for %o, %x, %X, %e,
%f, and %g sequences: for %o, it ensures that the result begins with
-\"0\"; for %x and %X, it prefixes the result with \"0x\" or \"0X\";
+\"0\"; for %x and %X, it prefixes nonzero results with \"0x\" or \"0X\";
for %e and %f, it causes a decimal point to be included even if the
precision is zero; for %g, it causes a decimal point to be
included even if the precision is zero, and also forces trailing