From 718d7c3990d08f10e40901650bfbdadf8c220e00 Mon Sep 17 00:00:00 2001 From: dablelv Date: Fri, 22 Nov 2024 01:12:41 +0800 Subject: [PATCH] =?UTF-8?q?docs:=E7=B2=BE=E7=AE=80=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\345\256\211\345\205\250\347\274\226\347\240\201.md" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/\347\254\254\344\272\224\347\257\207\357\274\232\345\256\211\345\205\250\347\274\226\347\240\201/\345\256\211\345\205\250\347\274\226\347\240\201.md" "b/\347\254\254\344\272\224\347\257\207\357\274\232\345\256\211\345\205\250\347\274\226\347\240\201/\345\256\211\345\205\250\347\274\226\347\240\201.md" index 3990e76..3afc768 100644 --- "a/\347\254\254\344\272\224\347\257\207\357\274\232\345\256\211\345\205\250\347\274\226\347\240\201/\345\256\211\345\205\250\347\274\226\347\240\201.md" +++ "b/\347\254\254\344\272\224\347\257\207\357\274\232\345\256\211\345\205\250\347\274\226\347\240\201/\345\256\211\345\205\250\347\274\226\347\240\201.md" @@ -1,6 +1,7 @@ # 1.内存管理 + ## 切片长度校验 -操作 slice 时,必须判断长度是否合法,防止程序 panic。 +操作 slice 必须判断长度是否合法,防止 panic。 ```go // bad: slice bounds out of range func foo(slice []int){