Fix comments

This commit is contained in:
Nise Void 2020-09-29 12:13:45 +02:00
parent 121a4e740a
commit 9850e4f385
Signed by: NiseVoid
GPG Key ID: FBA14AC83EA602F3
1 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ func (a Assert) True(actual bool, msg ...interface{}) {
a.f(actual, msg, `Should be true, but it isn't`) a.f(actual, msg, `Should be true, but it isn't`)
} }
// False sserts the given value is false // False asserts the given value is false
func (a Assert) False(actual bool, msg ...interface{}) { func (a Assert) False(actual bool, msg ...interface{}) {
a.t.Helper() a.t.Helper()
a.f(!actual, msg, `Should be false, but it isn't`) a.f(!actual, msg, `Should be false, but it isn't`)
@ -70,7 +70,7 @@ func (a Assert) Nil(actual interface{}, msg ...interface{}) {
a.f(isNil(actual), msg, `Should be nil, but got %#v`, actual) a.f(isNil(actual), msg, `Should be nil, but got %#v`, actual)
} }
// NotNil sserts the given value is not nil // NotNil asserts the given value is not nil
func (a Assert) NotNil(actual interface{}, msg ...interface{}) { func (a Assert) NotNil(actual interface{}, msg ...interface{}) {
a.t.Helper() a.t.Helper()
a.f(!isNil(actual), msg, `Should not be nil, but it is`) a.f(!isNil(actual), msg, `Should not be nil, but it is`)
@ -84,7 +84,7 @@ func (a Assert) Error(actual error, msg ...interface{}) {
a.f(actual != nil, msg, `Expected an error, but got nil`) a.f(actual != nil, msg, `Expected an error, but got nil`)
} }
// NoError asserts the given error is not nil // NoError asserts the given error is nil
func (a Assert) NoError(actual error, msg ...interface{}) { func (a Assert) NoError(actual error, msg ...interface{}) {
a.t.Helper() a.t.Helper()
a.f(actual == nil, msg, `Expected no error, but got %#v`, actual) a.f(actual == nil, msg, `Expected no error, but got %#v`, actual)