diff --git a/pgconn/ctxwatch/context_watcher_test.go b/pgconn/ctxwatch/context_watcher_test.go index 302aabe3b..a18e7339e 100644 --- a/pgconn/ctxwatch/context_watcher_test.go +++ b/pgconn/ctxwatch/context_watcher_test.go @@ -49,7 +49,7 @@ func TestContextWatcherContextCancelled(t *testing.T) { require.True(t, cleanupCalled, "Cleanup func was not called") } -func TestContextWatcherUnwatchdBeforeContextCancelled(t *testing.T) { +func TestContextWatcherUnwatchedBeforeContextCancelled(t *testing.T) { cw := ctxwatch.NewContextWatcher(&testHandler{ handleCancel: func(context.Context) { t.Error("cancel func should not have been called") diff --git a/pgproto3/password_message.go b/pgproto3/password_message.go index d820d3275..67b78515d 100644 --- a/pgproto3/password_message.go +++ b/pgproto3/password_message.go @@ -12,7 +12,7 @@ type PasswordMessage struct { // Frontend identifies this message as sendable by a PostgreSQL frontend. func (*PasswordMessage) Frontend() {} -// Frontend identifies this message as an authentication response. +// InitialResponse identifies this message as an authentication response. func (*PasswordMessage) InitialResponse() {} // Decode decodes src into dst. src must contain the complete message with the exception of the initial 1 byte message