From 9b07c2f1dbc7a1c8377887a6159af2f90ca9a4f3 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Sat, 3 Jul 2021 12:43:27 -0400 Subject: 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 bf2e5199e8dbc4e6fd4fcac5dab1ea16f4ec5970) and one of the examples. --- txr.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'txr.1') 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" -- cgit v1.2.3