From a41f7db57ae80056c71f0caf460f928c0cce7306 Mon Sep 17 00:00:00 2001 From: hugo-syn Date: Tue, 30 Apr 2024 10:52:13 +0200 Subject: [PATCH] chore: fix typos Signed-off-by: hugo-syn --- net/netstat/netstat_windows.go | 2 +- safesocket/pipe_windows_test.go | 2 +- util/osdiag/osdiag_windows.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/netstat/netstat_windows.go b/net/netstat/netstat_windows.go index 852e2c57ed675..c27d898fd7d5b 100644 --- a/net/netstat/netstat_windows.go +++ b/net/netstat/netstat_windows.go @@ -270,7 +270,7 @@ func moduleInfo[entryType moduleInfoConstraint](entry *entryType, proc *windows. // GetOwnerModuleFromTcp*Entry can apparently return ERROR_SUCCESS // (NO_ERROR) on the first call without the usual first // ERROR_INSUFFICIENT_BUFFER result. Windows said success, so interpret - // that was sucessfully not having data. + // that was successfully not having data. return "", nil } basicInfo := (*_TCPIP_OWNER_MODULE_BASIC_INFO)(addr) diff --git a/safesocket/pipe_windows_test.go b/safesocket/pipe_windows_test.go index 054781f235abd..60700683bf3dc 100644 --- a/safesocket/pipe_windows_test.go +++ b/safesocket/pipe_windows_test.go @@ -12,7 +12,7 @@ import ( func init() { // downgradeSDDL is a test helper that downgrades the windowsSDDL variable if - // the currently running user does not have sufficient priviliges to set the + // the currently running user does not have sufficient privileges to set the // SDDL. downgradeSDDL = func() (cleanup func()) { // The current default descriptor can not be set by mere mortal users, diff --git a/util/osdiag/osdiag_windows.go b/util/osdiag/osdiag_windows.go index 5dcce3beaf76e..4f799261e97c4 100644 --- a/util/osdiag/osdiag_windows.go +++ b/util/osdiag/osdiag_windows.go @@ -352,7 +352,7 @@ const ( ) // Note that wsaProtocolInfo needs to be identical to windows.WSAProtocolInfo; -// the purpose of this type is to have the ability to use it as a reciever in +// the purpose of this type is to have the ability to use it as a receiver in // the path and categoryFlags funcs defined below. type wsaProtocolInfo windows.WSAProtocolInfo