Skip to content

Commit 39ddc38

Browse files
authored
Correct typos in comments, test, and CHANGELOG (#150)
This PR fixes typos and spelling errors in code and documentation.
1 parent 6d8e954 commit 39ddc38

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
1515
- [#93][]: Ignore interfaces that contain type constraints.
1616
- [#101][]: Fix race condition on Controller.Satisfied.
1717
- [#121][]: Fix paths for windows.
18-
- [#127][]: Propogate -mock_names to Recorder and ReturnCall types.
18+
- [#127][]: Propagate -mock_names to Recorder and ReturnCall types.
1919
- [#132][]: Sanitize "any" package names.
2020

2121
[#63]: https://github.com/uber-go/mock/pull/63

gomock/call_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ func TestInOrder(t *testing.T) {
635635
t.Fatalf("expected 0 preReq in c1, found %d", len(c1.preReqs))
636636
}
637637
})
638-
t.Run("panic when the argument isn't a *Call or has one embeded", func(t *testing.T) {
638+
t.Run("panic when the argument isn't a *Call or has one embedded", func(t *testing.T) {
639639
defer func() {
640640
if r := recover(); r == nil {
641641
t.Error("expected InOrder to panic")

gomock/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ func (ctrl *Controller) Call(receiver any, method string, args ...any) []any {
214214
}
215215

216216
// Two things happen here:
217-
// * the matching call no longer needs to check prerequite calls,
218-
// * and the prerequite calls are no longer expected, so remove them.
217+
// * the matching call no longer needs to check prerequisite calls,
218+
// * and the prerequisite calls are no longer expected, so remove them.
219219
preReqCalls := expected.dropPrereqs()
220220
for _, preReqCall := range preReqCalls {
221221
ctrl.expectedCalls.Remove(preReqCall)

gomock/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ func TestOrderedCallsWithPreReqMaxUnbounded(t *testing.T) {
894894
ctrl.Call(subjectOne, "FooMethod", "1")
895895
ctrl.Call(subjectOne, "FooMethod", "1")
896896

897-
// But calling something that has it as a prerequite should remove it from
897+
// But calling something that has it as a prerequisite should remove it from
898898
// the expected call set. This allows tests to ensure that FooMethod("1") is
899899
// *not* called after FooMethod("2").
900900
ctrl.Call(subjectTwo, "FooMethod", "2")

0 commit comments

Comments
 (0)