From: Ian Lance Taylor Date: Mon, 18 Nov 2024 19:21:59 +0000 (-0800) Subject: os/user: s/Acount/Account/ in function name X-Git-Tag: go1.24rc1~328 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b5906ac4b7b455714565fa0a8f53aea966f3fb6f;p=gostls13.git os/user: s/Acount/Account/ in function name Change-Id: I9aa34951f2005c204aafd9da74e78c033c9b64ec Reviewed-on: https://go-review.googlesource.com/c/go/+/629315 Auto-Submit: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Commit-Queue: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov Reviewed-by: Quim Muntal Reviewed-by: Ian Lance Taylor --- diff --git a/src/os/user/user_windows_test.go b/src/os/user/user_windows_test.go index ff5155e1f8..635b6f3513 100644 --- a/src/os/user/user_windows_test.go +++ b/src/os/user/user_windows_test.go @@ -20,10 +20,10 @@ import ( "unsafe" ) -// windowsTestAcount creates a test user and returns a token for that user. +// windowsTestAccount creates a test user and returns a token for that user. // If the user already exists, it will be deleted and recreated. // The caller is responsible for closing the token. -func windowsTestAcount(t *testing.T) (syscall.Token, *User) { +func windowsTestAccount(t *testing.T) (syscall.Token, *User) { const testUserName = "GoStdTestUser01" var password [33]byte rand.Read(password[:]) @@ -134,7 +134,7 @@ func TestImpersonated(t *testing.T) { } // Create a test user and log in as that user. - token, _ := windowsTestAcount(t) + token, _ := windowsTestAccount(t) // Impersonate the test user. if err = windows.ImpersonateLoggedOnUser(token); err != nil { @@ -188,7 +188,7 @@ func TestCurrentNetapi32(t *testing.T) { func TestGroupIdsTestUser(t *testing.T) { // Create a test user and log in as that user. - _, user := windowsTestAcount(t) + _, user := windowsTestAccount(t) gids, err := user.GroupIds() if err != nil {