Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb18d3dd

Browse files
cuishuanggopherbot
authored andcommitted
secure/precis: replace bytes.Compare with bytes.Equal
Change-Id: Ifa6ba05253b38e1cb3d5791e62b36a523fb68e52GitHub-Last-Rev:2d7de01GitHub-Pull-Request:#36Reviewed-on:https://go-review.googlesource.com/c/text/+/438559Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>Reviewed-by: Ian Lance Taylor <iant@google.com>Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>TryBot-Result: Gopher Robot <gobot@golang.org>Run-TryBot: Ian Lance Taylor <iant@google.com>Auto-Submit: Ian Lance Taylor <iant@google.com>Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
1 parent795e854 commitb18d3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎secure/precis/profile.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func (p *Profile) Compare(a, b string) bool {
316316
returnfalse
317317
}
318318

319-
returnbytes.Compare(akey,bkey)==0
319+
returnbytes.Equal(akey,bkey)
320320
}
321321

322322
// Allowed returns a runes.Set containing every rune that is a member of the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp