Skip to content

Commit d3d548c

Browse files
authored
Merge pull request #570 from ferhatelmas/typo-fixes
test-without-stubs,exercises: Typo fixes
2 parents abf73a9 + 3a411b7 commit d3d548c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bin/test-without-stubs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ fi
6464

6565
# This is the last command in the file,
6666
# so the exit status of this script is the exit status of go test.
67-
# If this ever changes, remember to preserve the exit status acordingly.
67+
# If this ever changes, remember to preserve the exit status accordingly.
6868
# Otherwise Travis may falsely report a test as passed when it has failed.
6969
go test -cpu 2 $RACE ./...

exercises/beer-song/example.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func Song() (result string) {
1313
return
1414
}
1515

16-
// Verses returns an exerpt of the lyrics of 99 bottles of beer
16+
// Verses returns an excerpt of the lyrics of 99 bottles of beer
1717
// between verse start and stop. The verse numbers count backwards, so the
1818
// first verse sung will be verse 99, and the last will be verse 0
1919
func Verses(start, stop int) (string, error) {

exercises/binary-search/binary_search_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// with the exercise README.
55
//
66
// * If there are duplicate values of the key you are searching for, you can't
7-
// just stop at the first one you find; you must find the first occurance in
7+
// just stop at the first one you find; you must find the first occurrence in
88
// the slice.
99
//
1010
// * There is no special "not found" indication. If the search key is not

exercises/grade-school/grade_school_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func TestNonExistantGrade(t *testing.T) {
105105
s := New()
106106
got := s.Grade(1)
107107
if len(got) != 0 {
108-
t.Errorf(`Get non-existant grade, got
108+
t.Errorf(`Get non-existent grade, got
109109
%q
110110
expected
111111
[]`, got)

exercises/minesweeper/minesweeper_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var validBoards = []string{
9494
| |
9595
+-+`,
9696

97-
// 1x1 sqaure with 1 bomb
97+
// 1x1 square with 1 bomb
9898
`
9999
+-+
100100
|*|

0 commit comments

Comments
 (0)