mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: fix typos and remove repeated words
Change-Id: I5f06a4ef1d827eb0fe32a8d98444142108b0d573 Reviewed-on: https://go-review.googlesource.com/c/go/+/508996 Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
6244b1946b
commit
49d42128fd
6 changed files with 7 additions and 7 deletions
|
|
@ -68,7 +68,7 @@ func (m *Merger) SaturatingAdd(dst, src uint32) uint32 {
|
|||
return result
|
||||
}
|
||||
|
||||
// Saturating add does a saturing addition of 'dst' and 'src',
|
||||
// Saturating add does a saturating addition of 'dst' and 'src',
|
||||
// returning added value or math.MaxUint32 plus an overflow flag.
|
||||
func SaturatingAdd(dst, src uint32) (uint32, bool) {
|
||||
d, s := uint64(dst), uint64(src)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue