]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: clarify wording/grammar on GODEBUG=invalidptr
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 5 Jun 2020 15:32:41 +0000 (08:32 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 5 Jun 2020 19:11:07 +0000 (19:11 +0000)
Change-Id: Ia06b6be262922991bae3528e7b061d1db9e4c3c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/236679
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/extern.go

index 4fa21f0a3599ca430cdf8ef884856a3db7eb884f..7316503ed2a4c12cb56f6bc8b916e57da9fb477d 100644 (file)
@@ -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.