Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #422

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion async/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// Group is forked and improved version of "github.com/bradenaw/juniper/xsync.Group".
//
// It manages a group of goroutines. The main change to original is posibility
// It manages a group of goroutines. The main change to original is possibility
// to wait passed function to finish without canceling it's context and adding
// PanicHandler.
type Group struct {
Expand Down
4 changes: 2 additions & 2 deletions rfc822/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s *ByteScanner) readToBoundary() ([]byte, bool) {
// It can happen that this boundary is at the end of the file/message with no new line.
if len(afterBoundary) != 0 {
newLineStartIndex = indexOfNewLineAfterBoundary(afterBoundary)
// If there is no new line this can't be a boundary pattern. RFC 1341 states that tey are
// If there is no new line this can't be a boundary pattern. RFC 1341 states that they are
// immediately followed by either \r\n or \n.
if newLineStartIndex < 0 {
s.progress += index + boundaryLen + boundarySuffixLen
Expand All @@ -133,7 +133,7 @@ func (s *ByteScanner) readToBoundary() ([]byte, bool) {
afterBoundary := remaining[lineEndIndex:]
newLineStart := indexOfNewLineAfterBoundary(afterBoundary)

// If there is no new line this can't be a boundary pattern. RFC 1341 states that tey are
// If there is no new line this can't be a boundary pattern. RFC 1341 states that they are
// immediately followed by either \r\n or \n.
if newLineStart < 0 {
s.progress += index + boundaryLen
Expand Down
4 changes: 2 additions & 2 deletions tests/recovery_mailbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func (r *sizeExceededAppendConnector) CreateMessage(
_ []byte,
_ imap.FlagSet,
_ time.Time) (imap.Message, []byte, error) {
return imap.Message{}, nil, fmt.Errorf("messsage to large: %w", connector.ErrMessageSizeExceedsLimits)
return imap.Message{}, nil, fmt.Errorf("message to large: %w", connector.ErrMessageSizeExceedsLimits)
}

func (r *sizeExceededAppendConnector) AddMessagesToMailbox(
Expand All @@ -581,7 +581,7 @@ func (r *sizeExceededAppendConnector) AddMessagesToMailbox(
_ []imap.MessageID,
_ imap.MailboxID,
) error {
return fmt.Errorf("messsage to large: %w", connector.ErrMessageSizeExceedsLimits)
return fmt.Errorf("message to large: %w", connector.ErrMessageSizeExceedsLimits)
}

type sizeExceededAppendConnectorBuilder struct{}
Expand Down