]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/subtle: expand abbreviation to eliminate confusion
authorJason Barnett <jason.w.barnett@gmail.com>
Tue, 24 May 2016 19:50:02 +0000 (15:50 -0400)
committerIan Lance Taylor <iant@golang.org>
Thu, 9 Jun 2016 15:30:48 +0000 (15:30 +0000)
Change-Id: I68d66fccf9cc8f7137c92b94820ce7d6f478a185
Reviewed-on: https://go-review.googlesource.com/23310
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/crypto/subtle/constant_time.go

index 6f80e7c58dc3c8d551b05c8a171b3da9fed6b006..11312b8dd444018e2e7feb9803b55d8b64d7d124 100644 (file)
@@ -6,7 +6,7 @@
 // code but require careful thought to use correctly.
 package subtle
 
-// ConstantTimeCompare returns 1 iff the two slices, x
+// ConstantTimeCompare returns 1 if and only if the two slices, x
 // and y, have equal contents. The time taken is a function of the length of
 // the slices and is independent of the contents.
 func ConstantTimeCompare(x, y []byte) int {