_content/doc/tutorial: fix typos in fuzz tutorial
Fixes golang/go#51372
Fixes golang/go#51871
Change-Id: I64580e1608b75cb4e6f0d39ccc43f432e0c2dfca
Reviewed-on: https://go-review.googlesource.com/c/website/+/394814
Reviewed-by: Ian Lance Taylor <iant@google.com>
Trust: Dmitri Shuralyov <dmitshur@google.com>
diff --git a/_content/doc/tutorial/fuzz.md b/_content/doc/tutorial/fuzz.md
index 450d166..d135d1c 100644
--- a/_content/doc/tutorial/fuzz.md
+++ b/_content/doc/tutorial/fuzz.md
@@ -268,23 +268,23 @@
- The function begins with FuzzXxx instead of TestXxx, and takes `*testing.F`
instead of `*testing.T`
-- Where you would expect to a see a `t.Run` execution, you instead see `f.Fuzz`
+- Where you would expect to see a `t.Run` execution, you instead see `f.Fuzz`
which takes a fuzz target function whose parameters are `*testing.T` and the
types to be fuzzed. The inputs from your unit test are provided as seed corpus
inputs using `f.Add`.
-2. Ensure the new package, `unicode/utf8` has been imported.
+Ensure the new package, `unicode/utf8` has been imported.
- ```
- package main
+```
+package main
- import (
- "testing"
- "unicode/utf8"
- )
- ```
+import (
+ "testing"
+ "unicode/utf8"
+)
+```
- With the unit test converted to a fuzz test, it’s time to run the test again.
+With the unit test converted to a fuzz test, it’s time to run the test again.
### Run the code