aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Path.extension.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/man3/tomo-Path.extension.3')
-rw-r--r--man/man3/tomo-Path.extension.314
1 files changed, 5 insertions, 9 deletions
diff --git a/man/man3/tomo-Path.extension.3 b/man/man3/tomo-Path.extension.3
index 08d348c8..f77f692a 100644
--- a/man/man3/tomo-Path.extension.3
+++ b/man/man3/tomo-Path.extension.3
@@ -2,7 +2,7 @@
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
-.TH Path.extension 3 2025-05-17 "Tomo man-pages"
+.TH Path.extension 3 2025-09-21 "Tomo man-pages"
.SH NAME
Path.extension \- get file extension
.SH LIBRARY
@@ -30,12 +30,8 @@ The file extension (not including the leading `.`) or an empty text if there is
.SH EXAMPLES
.EX
->> (./file.tar.gz).extension()
-= "tar.gz"
->> (./file.tar.gz).extension(full=no)
-= "gz"
->> (/foo).extension()
-= ""
->> (./.git).extension()
-= ""
+assert (./file.tar.gz).extension() == "tar.gz"
+assert (./file.tar.gz).extension(full=no) == "gz"
+assert (/foo).extension() == ""
+assert (./.git).extension() == ""
.EE