summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-07-03 12:43:27 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-07-03 13:48:46 -0700
commit1379dfa1420db38482c3e64b9217be6777b4a05d (patch)
tree2fc8d3c505632f0f74f334b90413618f4be548bc
parent8454416e6b0cf25876237bd60de9e0bdeead0896 (diff)
downloadtxr-1379dfa1420db38482c3e64b9217be6777b4a05d.tar.gz
txr-1379dfa1420db38482c3e64b9217be6777b4a05d.tar.bz2
txr-1379dfa1420db38482c3e64b9217be6777b4a05d.zip
doc: fix description and example of suffix funs
* txr.1: The suffix of path "abc." is ".". Fix the description for this case (which suggested the suffix was the empty string, which was the case before commit 45e1c6531c4187a6273483bbe63bc1f549fd6ff8) and one of the examples.
-rw-r--r--txr.14
1 files changed, 2 insertions, 2 deletions
diff --git a/txr.1 b/txr.1
index d0022884..55d9f535 100644
--- a/txr.1
+++ b/txr.1
@@ -57418,7 +57418,7 @@ the delimiter for the short suffix is the rightmost period.
If the delimiting period is the rightmost character of
.metn path ,
or occurs immediately before a trailing path separator,
-then the suffix delimited by that period is the empty string.
+then the suffix delimited by that period is the period itself.
If
.meta path
@@ -57456,7 +57456,7 @@ extracted from this last component.
(long-suffix "abc") -> nil
(long-suffix ".abc") -> nil
(long-suffix "/.abc") -> nil
- (long-suffix "abc.") -> ""
+ (long-suffix "abc.") -> "."
(long-suffix "abc.tar") -> ".tar"
(long-suffix "abc.tar.gz") -> ".tar.gz"
(long-suffix "abc.tar.gz/") -> ".tar.gz"