diff --git a/client.go b/client.go index 1ca4814..1d175d1 100644 --- a/client.go +++ b/client.go @@ -683,7 +683,7 @@ func (c *Client) DialAndSendWithContext(ctx context.Context, messages ...*Msg) e return fmt.Errorf("send failed: %w", err) } if err := c.Close(); err != nil { - return fmt.Errorf("failed to close connction: %w", err) + return fmt.Errorf("failed to close connection: %w", err) } return nil }