]> Cypherpunks repositories - gostls13.git/commit
internal/bisect: fix PrintMarker and examples
authorMatthew Dempsky <mdempsky@google.com>
Wed, 9 Aug 2023 08:19:38 +0000 (01:19 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 9 Aug 2023 14:36:30 +0000 (14:36 +0000)
commit288fd6eb9d16cc29b0370f4a0b5e3e499521d502
tree93727c7e52184ccbac4ec9575e5b1e7d5cea9506
parenta3ced4a6333dc669359e77004fa3f8a662961cb5
internal/bisect: fix PrintMarker and examples

PrintMarker was printing 50 NUL bytes before the marker.

Also, the examples for writing your own ShouldEnable helper suggest
"if m == nil { return false }", but this is inconsistent with how
Matcher.ShouldEnable handles nil pointers.

Change-Id: Ie45075ba7fb8fcc63eadce9d793a06ef0c8aa9f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/517615
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/internal/bisect/bisect.go