better docstring for dirs.UnExpand

This commit is contained in:
Lilian Jónsdóttir 2024-07-27 16:30:28 -07:00
parent b3f19bef73
commit a5e0a2546c

View file

@ -13,10 +13,12 @@ var (
pwd, _ = os.Getwd() pwd, _ = os.Getwd()
) )
// UnExpand unexpands some directory shortcuts // UnExpand returns dir after expanding some directory shortcuts
// //
// $HOME -> ~ // $HOME -> ~
//
// $PWD -> . // $PWD -> .
//
// workdir -> / // workdir -> /
func UnExpand(dir, workdir string) (outdir string) { func UnExpand(dir, workdir string) (outdir string) {
if dir != "" { if dir != "" {