File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -303,8 +303,10 @@ func Nil[T any](p *T, a ...any) {
303
303
// (default Asserter) with the given message.
304
304
//
305
305
// Note, use this only for real interface types. Go's interface's has two values
306
- // so this won't work e.g. slices! Read more information about interface type:
307
- // https://go.dev/doc/faq#nil_error.
306
+ // so this won't work e.g. slices!
307
+ // Read more information about [the interface type].
308
+ //
309
+ // [the interface type]: https://go.dev/doc/faq#nil_error
308
310
func INil (i any , a ... any ) {
309
311
if i != nil {
310
312
defMsg := assertionMsg + ": interface should be nil"
@@ -316,8 +318,10 @@ func INil(i any, a ...any) {
316
318
// panics/errors (default Asserter) with the given message.
317
319
//
318
320
// Note, use this only for real interface types. Go's interface's has two values
319
- // so this won't work e.g. slices! Read more information about interface type:
320
- // https://go.dev/doc/faq#nil_error.
321
+ // so this won't work e.g. slices!
322
+ // Read more information about [the interface type].
323
+ //
324
+ // [the interface type]: https://go.dev/doc/faq#nil_error
321
325
func INotNil (i any , a ... any ) {
322
326
if i == nil {
323
327
defMsg := assertionMsg + ": interface shouldn't be nil"
You can’t perform that action at this time.
0 commit comments