aboutsummaryrefslogtreecommitdiff
path: root/src/testing/quick/quick.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/quick/quick.go')
-rw-r--r--src/testing/quick/quick.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/testing/quick/quick.go b/src/testing/quick/quick.go
index e73d307c13..95a635bade 100644
--- a/src/testing/quick/quick.go
+++ b/src/testing/quick/quick.go
@@ -251,15 +251,15 @@ func (s *CheckEqualError) Error() string {
// Check returns that input as a *CheckError.
// For example:
//
-// func TestOddMultipleOfThree(t *testing.T) {
-// f := func(x int) bool {
-// y := OddMultipleOfThree(x)
-// return y%2 == 1 && y%3 == 0
-// }
-// if err := quick.Check(f, nil); err != nil {
-// t.Error(err)
-// }
-// }
+// func TestOddMultipleOfThree(t *testing.T) {
+// f := func(x int) bool {
+// y := OddMultipleOfThree(x)
+// return y%2 == 1 && y%3 == 0
+// }
+// if err := quick.Check(f, nil); err != nil {
+// t.Error(err)
+// }
+// }
func Check(f any, config *Config) error {
if config == nil {
config = &defaultConfig