aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2020-06-05 08:32:41 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2020-06-05 19:11:07 +0000
commit3c35eec6184fba625e0c3207c05694f4020131a1 (patch)
treec507cf2258846c2b9fad2bbc7f19007e0ef22d24
parent325540922a228dd8ab80abb200b834d043d5b925 (diff)
downloadgo-3c35eec6184fba625e0c3207c05694f4020131a1.tar.gz
go-3c35eec6184fba625e0c3207c05694f4020131a1.zip
runtime: clarify wording/grammar on GODEBUG=invalidptr
Change-Id: Ia06b6be262922991bae3528e7b061d1db9e4c3c0 Reviewed-on: https://go-review.googlesource.com/c/go/+/236679 Reviewed-by: Austin Clements <austin@google.com>
-rw-r--r--src/runtime/extern.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/extern.go b/src/runtime/extern.go
index 4fa21f0a35..7316503ed2 100644
--- a/src/runtime/extern.go
+++ b/src/runtime/extern.go
@@ -87,7 +87,7 @@ It is a comma-separated list of name=val pairs setting these named variables:
When set to 0 memory profiling is disabled. Refer to the description of
MemProfileRate for the default value.
- invalidptr: defaults to invalidptr=1, causing the garbage collector and stack
+ invalidptr: invalidptr=1 (the default) causes the garbage collector and stack
copier to crash the program if an invalid pointer value (for example, 1)
is found in a pointer-typed location. Setting invalidptr=0 disables this check.
This should only be used as a temporary workaround to diagnose buggy code.