From d876978337bfcdb0319fefe51d259baef61db901 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 5 Dec 2018 17:34:09 -0600 Subject: [PATCH] Fixed misspelling in a comment residing in packer/config_file.go as suggested by @azr. Co-Authored-By: arizvisa --- packer/config_file.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packer/config_file.go b/packer/config_file.go index 3bb9c8e51..f95914230 100644 --- a/packer/config_file.go +++ b/packer/config_file.go @@ -87,7 +87,10 @@ func configDir() (string, error) { } // Given a path, check to see if it's using ~ to reference a user directory. -// If so, then replace that component with the requrested user's directory. +// If so, then replace that component with the requested user directory. +// In "~/", "~" gets replaced by current user's home dir. +// In "~root/", "~user" gets replaced by root's home dir. +// ~ has to be the first character of path for ExpandUser change it. func ExpandUser(path string) (string, error) { var ( u *user.User