diff --git a/format/format.go b/format/format.go index 3a4ba8fb9..06ab41f88 100644 --- a/format/format.go +++ b/format/format.go @@ -36,7 +36,7 @@ var PrintContextObjects = false // TruncatedDiff choose if we should display a truncated pretty diff or not var TruncatedDiff = true -// Ctx interface defined here to keep backwards compatability with go < 1.7 +// Ctx interface defined here to keep backwards compatibility with go < 1.7 // It matches the context.Context interface type Ctx interface { Deadline() (deadline time.Time, ok bool) @@ -61,7 +61,7 @@ Generates a formatted matcher success/failure message of the form: -If expected is omited, then the message looks like: +If expected is omitted, then the message looks like: Expected diff --git a/gbytes/say_matcher.go b/gbytes/say_matcher.go index c15ddbfc3..0763f5e2d 100644 --- a/gbytes/say_matcher.go +++ b/gbytes/say_matcher.go @@ -21,7 +21,7 @@ Say is a Gomega matcher that operates on gbytes.Buffers: will succeed if the unread portion of the buffer matches the regular expression "something". -When Say succeeds, it fast forwards the gbytes.Buffer's read cursor to just after the succesful match. +When Say succeeds, it fast forwards the gbytes.Buffer's read cursor to just after the successful match. Thus, subsequent calls to Say will only match against the unread portion of the buffer Say pairs very well with Eventually. To assert that a buffer eventually receives data matching "[123]-star" within 3 seconds you can: diff --git a/gexec/prefixed_writer.go b/gexec/prefixed_writer.go index ee3cf4072..feb6620c5 100644 --- a/gexec/prefixed_writer.go +++ b/gexec/prefixed_writer.go @@ -8,7 +8,7 @@ import ( ) /* -PrefixedWriter wraps an io.Writer, emiting the passed in prefix at the beginning of each new line. +PrefixedWriter wraps an io.Writer, emitting the passed in prefix at the beginning of each new line. This can be useful when running multiple gexec.Sessions concurrently - you can prefix the log output of each session by passing in a PrefixedWriter: diff --git a/ghttp/test_server.go b/ghttp/test_server.go index 6524eb40b..057d3ba4e 100644 --- a/ghttp/test_server.go +++ b/ghttp/test_server.go @@ -38,7 +38,7 @@ A more comprehensive example is available at https://onsi.github.io/gomega/#_tes }) Context("when requesting all sprockets", func() { - Context("when the response is succesful", func() { + Context("when the response is successful", func() { BeforeEach(func() { sprockets = []Sprocket{ NewSprocket("Alfalfa"), diff --git a/gomega_dsl.go b/gomega_dsl.go index e3cf9a51d..70b917960 100644 --- a/gomega_dsl.go +++ b/gomega_dsl.go @@ -280,7 +280,7 @@ func SetDefaultEventuallyPollingInterval(t time.Duration) { defaultEventuallyPollingInterval = t } -// SetDefaultConsistentlyDuration sets the default duration for Consistently. Consistently will verify that your condition is satsified for this long. +// SetDefaultConsistentlyDuration sets the default duration for Consistently. Consistently will verify that your condition is satisfied for this long. func SetDefaultConsistentlyDuration(t time.Duration) { defaultConsistentlyDuration = t }