better docstring for dirs.UnExpand
This commit is contained in:
parent
b3f19bef73
commit
a5e0a2546c
|
@ -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 != "" {
|
||||||
|
|
Loading…
Reference in a new issue