aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/strings.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref/strings.texi')
-rw-r--r--doc/lispref/strings.texi16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/lispref/strings.texi b/doc/lispref/strings.texi
index 08e8e877a9f..d882be485ef 100644
--- a/doc/lispref/strings.texi
+++ b/doc/lispref/strings.texi
@@ -969,12 +969,12 @@ is not truncated.
969 969
970@example 970@example
971@group 971@group
972(format "The word '%7s' has %d letters in it." 972(format "The word %7s has %d letters in it."
973 "foo" (length "foo")) 973 "foo" (length "foo"))
974 @result{} "The word ' foo' has 3 letters in it." 974 @result{} "The word foo has 3 letters in it."
975(format "The word '%7s' has %d letters in it." 975(format "The word %7s has %d letters in it."
976 "specification" (length "specification")) 976 "specification" (length "specification"))
977 @result{} "The word 'specification' has 13 letters in it." 977 @result{} "The word specification has 13 letters in it."
978@end group 978@end group
979@end example 979@end example
980 980
@@ -1013,12 +1013,12 @@ ignored.
1013(format "%06d is padded on the left with zeros" 123) 1013(format "%06d is padded on the left with zeros" 123)
1014 @result{} "000123 is padded on the left with zeros" 1014 @result{} "000123 is padded on the left with zeros"
1015 1015
1016(format "'%-6d' is padded on the right" 123) 1016(format "%-6d is padded on the right" 123)
1017 @result{} "'123 ' is padded on the right" 1017 @result{} "123 is padded on the right"
1018 1018
1019(format "The word '%-7s' actually has %d letters in it." 1019(format "The word %-7s actually has %d letters in it."
1020 "foo" (length "foo")) 1020 "foo" (length "foo"))
1021 @result{} "The word 'foo ' actually has 3 letters in it." 1021 @result{} "The word foo actually has 3 letters in it."
1022@end group 1022@end group
1023@end example 1023@end example
1024 1024