Fixed misspelling in a comment residing in packer/config_file.go as suggested by @azr.

Co-Authored-By: arizvisa <arizvisa@users.noreply.github.com>
This commit is contained in:
Adrien Delorme 2018-12-05 17:34:09 -06:00 committed by GitHub
parent ecf45d4740
commit d876978337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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