This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
File::Spec::Win32: fix splitdir() example
authorTony Cook <tony@develop-help.com>
Thu, 13 Apr 2023 04:46:14 +0000 (14:46 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 25 Jul 2023 05:57:57 +0000 (15:57 +1000)
Fixes #20758

dist/PathTools/lib/File/Spec/Win32.pm

index 292c2f8..9a4980c 100644 (file)
@@ -249,7 +249,7 @@ Unlike just splitting the directories on the separator, leading empty and
 trailing directory entries can be returned, because these are significant
 on some OSs. So,
 
-    File::Spec->splitdir( "/a/b/c" );
+    File::Spec->splitdir( "/a/b//c/" );
 
 Yields: