mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 16:01:55 +03:00
More idioms related to go 1.26
This commit is contained in:
@@ -63,7 +63,7 @@ func (h *handshakeFrame) connectionType() []byte {
|
||||
func (h *handshakeFrame) invert() handshakeFrame {
|
||||
copyFrame := *h
|
||||
|
||||
for i := 0; i < handshakeFrameLenKey+handshakeFrameLenIV; i++ {
|
||||
for i := range handshakeFrameLenKey + handshakeFrameLenIV {
|
||||
copyFrame.data[handshakeFrameOffsetKey+i] = h.data[handshakeFrameOffsetConnectionType-1-i]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user