Skip to content

Commit

Permalink
vet: fix vet warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi committed Jan 21, 2018
1 parent ecdeabc commit db69d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spew/dump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ func addUintptrDumpTests() {

func addUnsafePointerDumpTests() {
// Null pointer.
v := unsafe.Pointer(uintptr(0))
v := unsafe.Pointer(nil)
nv := (*unsafe.Pointer)(nil)
pv := &v
vAddr := fmt.Sprintf("%p", pv)
Expand Down
2 changes: 1 addition & 1 deletion spew/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ func addUintptrFormatterTests() {

func addUnsafePointerFormatterTests() {
// Null pointer.
v := unsafe.Pointer(uintptr(0))
v := unsafe.Pointer(nil)
nv := (*unsafe.Pointer)(nil)
pv := &v
vAddr := fmt.Sprintf("%p", pv)
Expand Down

0 comments on commit db69d09

Please sign in to comment.