aboutsummaryrefslogtreecommitdiff
path: root/doc/ref/general/util-path.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ref/general/util-path.texi')
-rw-r--r--doc/ref/general/util-path.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/ref/general/util-path.texi b/doc/ref/general/util-path.texi
index 9c1da19b..ba78a828 100644
--- a/doc/ref/general/util-path.texi
+++ b/doc/ref/general/util-path.texi
@@ -41,7 +41,13 @@ The first component will be @code{""} if path is absolute.
@defun filename-extension filename
-Returns the extension of the filename, or the empty string if none exists.
+Returns the extension of the filename without a leading period, or the
+empty string if none exists.
+
+@example
+(filename-extension "file.tar.gz")
+⇒ "gz"
+@end example
@end defun
@defun realpath path