MCPcopy
hub / github.com/google/go-cmp / add

Method add

cmp/internal/diff/diff.go:392–392  ·  view source on GitHub ↗
(dx, dy int)

Source from the content-addressed store, hash-verified

390type point struct{ X, Y int }
391
392func (p *point) add(dx, dy int) { p.X += dx; p.Y += dy }
393
394// zigzag maps a consecutive sequence of integers to a zig-zag sequence.
395//

Callers 1

appendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected