]> Cypherpunks repositories - gostls13.git/commitdiff
os/user: s/Acount/Account/ in function name
authorIan Lance Taylor <iant@golang.org>
Mon, 18 Nov 2024 19:21:59 +0000 (11:21 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 19:54:46 +0000 (19:54 +0000)
Change-Id: I9aa34951f2005c204aafd9da74e78c033c9b64ec
Reviewed-on: https://go-review.googlesource.com/c/go/+/629315
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/user/user_windows_test.go

index ff5155e1f8fc006c34de7ab1d0c65e6cf2949802..635b6f3513c99bfbf04b29a6c0daab5eb1d1d5cb 100644 (file)
@@ -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 {