From f49a9c62257fc8ead7a284bcf5417812b745e232 Mon Sep 17 00:00:00 2001 From: zengwei2000 <102871671+zengwei2000@users.noreply.github.com> Date: Mon, 20 Mar 2023 09:57:28 +0000 Subject: [PATCH] =?UTF-8?q?Update=20Go=E5=AE=89=E5=85=A8=E6=8C=87=E5=8D=97?= =?UTF-8?q?.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改if判断注释 --- "Go\345\256\211\345\205\250\346\214\207\345\215\227.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/Go\345\256\211\345\205\250\346\214\207\345\215\227.md" "b/Go\345\256\211\345\205\250\346\214\207\345\215\227.md" index 3298c1b..5fc5310 100644 --- "a/Go\345\256\211\345\205\250\346\214\207\345\215\227.md" +++ "b/Go\345\256\211\345\205\250\346\214\207\345\215\227.md" @@ -92,7 +92,7 @@ func (p *Packet) UnmarshalBinary(b []byte) error { p.PackeyType = b[0] p.PackeyVersion = b[1] - // 若长度等于2,那么不会new Data + // 若长度小于等于2,那么不会new Data if len(b) > 2 { p.Data = new(Data) }