Skip to content

Commit 12b6f73

Browse files
Ernesto Jiménezernesto-jimenez
Ernesto Jiménez
authored andcommitted
Docs: Remove superfluous parenthesis
As per #549 from @larsxschneider
1 parent 85c7900 commit 12b6f73

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

assert/assertion_format.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func DirExistsf(t TestingT, path string, msg string, args ...interface{}) bool {
3535
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
3636
// the number of appearances of each of them in both lists should match.
3737
//
38-
// assert.ElementsMatchf(t, [1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted"))
38+
// assert.ElementsMatchf(t, [1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted")
3939
func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{}) bool {
4040
return ElementsMatch(t, listA, listB, append([]interface{}{msg}, args...)...)
4141
}

assert/assertion_forward.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) bo
5555
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
5656
// the number of appearances of each of them in both lists should match.
5757
//
58-
// a.ElementsMatch([1, 3, 2, 3], [1, 3, 3, 2]))
58+
// a.ElementsMatch([1, 3, 2, 3], [1, 3, 3, 2])
5959
func (a *Assertions) ElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{}) bool {
6060
return ElementsMatch(a.t, listA, listB, msgAndArgs...)
6161
}
@@ -64,7 +64,7 @@ func (a *Assertions) ElementsMatch(listA interface{}, listB interface{}, msgAndA
6464
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
6565
// the number of appearances of each of them in both lists should match.
6666
//
67-
// a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted"))
67+
// a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted")
6868
func (a *Assertions) ElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{}) bool {
6969
return ElementsMatchf(a.t, listA, listB, msg, args...)
7070
}

assert/assertions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ func NotSubset(t TestingT, list, subset interface{}, msgAndArgs ...interface{})
711711
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
712712
// the number of appearances of each of them in both lists should match.
713713
//
714-
// assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2]))
714+
// assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2])
715715
func ElementsMatch(t TestingT, listA, listB interface{}, msgAndArgs ...interface{}) (ok bool) {
716716
if isEmpty(listA) && isEmpty(listB) {
717717
return true

require/require.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func DirExistsf(t TestingT, path string, msg string, args ...interface{}) {
6868
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
6969
// the number of appearances of each of them in both lists should match.
7070
//
71-
// assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2]))
71+
// assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2])
7272
func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
7373
if !assert.ElementsMatch(t, listA, listB, msgAndArgs...) {
7474
t.FailNow()
@@ -79,7 +79,7 @@ func ElementsMatch(t TestingT, listA interface{}, listB interface{}, msgAndArgs
7979
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
8080
// the number of appearances of each of them in both lists should match.
8181
//
82-
// assert.ElementsMatchf(t, [1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted"))
82+
// assert.ElementsMatchf(t, [1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted")
8383
func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{}) {
8484
if !assert.ElementsMatchf(t, listA, listB, msg, args...) {
8585
t.FailNow()

require/require_forward.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) {
5656
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
5757
// the number of appearances of each of them in both lists should match.
5858
//
59-
// a.ElementsMatch([1, 3, 2, 3], [1, 3, 3, 2]))
59+
// a.ElementsMatch([1, 3, 2, 3], [1, 3, 3, 2])
6060
func (a *Assertions) ElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{}) {
6161
ElementsMatch(a.t, listA, listB, msgAndArgs...)
6262
}
@@ -65,7 +65,7 @@ func (a *Assertions) ElementsMatch(listA interface{}, listB interface{}, msgAndA
6565
// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements,
6666
// the number of appearances of each of them in both lists should match.
6767
//
68-
// a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted"))
68+
// a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted")
6969
func (a *Assertions) ElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{}) {
7070
ElementsMatchf(a.t, listA, listB, msg, args...)
7171
}

0 commit comments

Comments
 (0)