better docstring for dirs.UnExpand
This commit is contained in:
parent
b3f19bef73
commit
a5e0a2546c
|
@ -13,10 +13,12 @@ var (
|
|||
pwd, _ = os.Getwd()
|
||||
)
|
||||
|
||||
// UnExpand unexpands some directory shortcuts
|
||||
// UnExpand returns dir after expanding some directory shortcuts
|
||||
//
|
||||
// $HOME -> ~
|
||||
//
|
||||
// $PWD -> .
|
||||
//
|
||||
// workdir -> /
|
||||
func UnExpand(dir, workdir string) (outdir string) {
|
||||
if dir != "" {
|
||||
|
|
Loading…
Reference in a new issue