From 2749b88fd016aed77f01ef71e25df568ab830aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 27 Nov 2020 16:06:43 +0100 Subject: [PATCH] Update path.Split.md --- 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 d6bc15ce9..583e95a7e 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. ``` -{{ path.Split "a/news.html" }} → "a/", "news.html" -{{ path.Split "news.html" }} → "", "news.html" -{{ path.Split "a/b/c" }} → "a/b/", "c" +{{ $dirFile := path.Split "a/news.html" }} → $dirDile.Dir = "a/", $dirFile.File = "news.html" +{{ path.Split "news.html" }} → $dirDile.Dir = "", $dirDile.File = "news.html" +{{ path.Split "a/b/c" }} → $dirDile.Dir = "a/b/", $dirDile.File = "c" ```