Skip to content

Commit

Permalink
Fixed typos (#352)
Browse files Browse the repository at this point in the history
Just a bunch of nitpicky typo fixes.
  • Loading branch information
muesli authored and Andrea Nodari committed Jul 21, 2019
1 parent efe19c3 commit 3f647c4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions format/format.go
Expand Up @@ -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)
Expand All @@ -61,7 +61,7 @@ Generates a formatted matcher success/failure message of the form:
<message>
<pretty printed expected>
If expected is omited, then the message looks like:
If expected is omitted, then the message looks like:
Expected
<pretty printed actual>
Expand Down
2 changes: 1 addition & 1 deletion gbytes/say_matcher.go
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion gexec/prefixed_writer.go
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion ghttp/test_server.go
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion gomega_dsl.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 3f647c4

Please sign in to comment.