From b66049c14f0f95f48eac5fcd486c9c4ab478ec7b Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 22 Dec 2018 11:31:52 +0200 Subject: [PATCH] Typo fix Typo fix in function's header comment. --- src/yggdrasil/wire.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/wire.go b/src/yggdrasil/wire.go index 782af433..8891f1ab 100644 --- a/src/yggdrasil/wire.go +++ b/src/yggdrasil/wire.go @@ -70,7 +70,7 @@ func wire_decode_uint64(bs []byte) (uint64, int) { // Converts an int64 into uint64 so it can be written to the wire. // Non-negative integers are mapped to even integers: 0 -> 0, 1 -> 2, etc. -// Negative integres are mapped to odd integes: -1 -> 1, -2 -> 3, etc. +// Negative integers are mapped to odd integers: -1 -> 1, -2 -> 3, etc. // This means the least significant bit is a sign bit. func wire_intToUint(i int64) uint64 { return ((uint64(-(i+1))<<1)|0x01)*(uint64(i)>>63) + (uint64(i)<<1)*(^uint64(i)>>63)