From 29595ffeca93390dc9c03753b01406c4470c1490 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 29 Apr 2025 11:46:09 +0000 Subject: [PATCH] doc: fix grammar and spelling Minor typo fixes in the docs Change-Id: I56b5d0318936aecc7775fb5bc70534456707da49 GitHub-Last-Rev: b4d042f8a997aa0d3824d8f9350dd24090b21073 GitHub-Pull-Request: golang/go#73531 Reviewed-on: https://go-review.googlesource.com/c/go/+/668815 Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee Auto-Submit: Keith Randall Reviewed-by: Keith Randall --- doc/godebug.md | 2 +- doc/next/5-toolchain.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/godebug.md b/doc/godebug.md index f3ad820d3c..23427c85b5 100644 --- a/doc/godebug.md +++ b/doc/godebug.md @@ -370,7 +370,7 @@ certificate policy OIDs with components larger than 31 bits. By default this field is only used during parsing, when it is populated with policy OIDs, but not used during marshaling. It can be used to marshal these larger OIDs, instead of the existing PolicyIdentifiers field, by using the -[`x509usepolicies` setting.](/pkg/crypto/x509/#CreateCertificate). +[`x509usepolicies` setting](/pkg/crypto/x509/#CreateCertificate). ### Go 1.21 diff --git a/doc/next/5-toolchain.md b/doc/next/5-toolchain.md index c4d4744168..c270e9dfc9 100644 --- a/doc/next/5-toolchain.md +++ b/doc/next/5-toolchain.md @@ -4,7 +4,7 @@ The compiler and linker in Go 1.25 now generate debug information using [DWARF version 5](https://dwarfstd.org/dwarf5std.html); the -newer DWARF version reduces the space required for debuging +newer DWARF version reduces the space required for debugging information in Go binaries. DWARF 5 generation is gated by the "dwarf5" GOEXPERIMENT; this functionality can be disabled (for now) using GOEXPERIMENT=nodwarf5. @@ -35,7 +35,7 @@ the error. The main result of `os.Open` can be a nil pointer if the error result But because of [a compiler bug](/issue/72860), this program ran successfully under Go versions 1.21 through 1.24 (in violation of the Go spec). It will no longer run successfully in Go 1.25. If this change is affecting your code, the solution is to put -the non-nil error check earlier in your code, preferrably immediately after +the non-nil error check earlier in your code, preferably immediately after the error-generating statement. ## Assembler {#assembler}