From 17f15daa614e1e2d01ad9e552f138201d5f52001 Mon Sep 17 00:00:00 2001 From: Rob Playford Date: Wed, 31 Mar 2021 15:17:29 +0100 Subject: [PATCH] fix file naming used in example (#1392) --- content/en/functions/path.Split.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/functions/path.Split.md b/content/en/functions/path.Split.md index 2d6aff6bb..c9c32ac56 100644 --- a/content/en/functions/path.Split.md +++ b/content/en/functions/path.Split.md @@ -25,7 +25,7 @@ If there is no slash in `PATH`, it returns an empty directory and the base is se **Note:** On Windows, `PATH` is converted to slash (`/`) separators. ``` -{{ $dirFile := path.Split "a/news.html" }} → $dirDile.Dir → "a/", $dirFile.File → "news.html" -{{ $dirFile := path.Split "news.html" }} → $dirDile.Dir → "", $dirDile.File → "news.html" -{{ $dirFile := path.Split "a/b/c" }} → $dirDile.Dir → "a/b/", $dirDile.File → "c" +{{ $dirFile := path.Split "a/news.html" }} → $dirFile.Dir → "a/", $dirFile.File → "news.html" +{{ $dirFile := path.Split "news.html" }} → $dirFile.Dir → "", $dirFile.File → "news.html" +{{ $dirFile := path.Split "a/b/c" }} → $dirFile.Dir → "a/b/", $dirFile.File → "c" ```