Skip to content

Commit c086eb1

Browse files
committed
real hyperlinks
1 parent 28018f4 commit c086eb1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

assert/assert.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,10 @@ func Nil[T any](p *T, a ...any) {
303303
// (default Asserter) with the given message.
304304
//
305305
// 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
308310
func INil(i any, a ...any) {
309311
if i != nil {
310312
defMsg := assertionMsg + ": interface should be nil"
@@ -316,8 +318,10 @@ func INil(i any, a ...any) {
316318
// panics/errors (default Asserter) with the given message.
317319
//
318320
// 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
321325
func INotNil(i any, a ...any) {
322326
if i == nil {
323327
defMsg := assertionMsg + ": interface shouldn't be nil"

0 commit comments

Comments
 (0)