Skip to content

Commit 5a4a1cc

Browse files
committed
Use links for previously invalid inline code blocks
These were previously inline code blocks (which go does not support) containing reference to a single symbol. Link to the symbol instead.
1 parent 3f28143 commit 5a4a1cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assert/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
// # Assertions
4242
//
4343
// Assertions allow you to easily write test code, and are global funcs in the assert package.
44-
// All assertion functions take, as the first argument, the *testing.T object provided by the
44+
// All assertion functions take, as the first argument, the [*testing.T] object provided by the
4545
// testing framework. This allows the assertion funcs to write the failings and other details to
4646
// the correct place.
4747
//

require/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// # Assertions
2323
//
2424
// The require package have same global functions as in the assert package,
25-
// but instead of returning a boolean result they call "t.FailNow()".
25+
// but instead of returning a boolean result they call [testing.T.FailNow].
2626
// A consequence of this is that it must be called from the goroutine running
2727
// the test function, not from other goroutines created during the test.
2828
//

0 commit comments

Comments
 (0)