From 9fdca9144aa6d8359b200b3575bf0a6e2334bb54 Mon Sep 17 00:00:00 2001 From: Swordword Date: Mon, 15 Aug 2022 17:19:17 +0800 Subject: [PATCH] =?UTF-8?q?Update=20day07=5FSlice=E7=9A=84=E4=BD=BF?= =?UTF-8?q?=E7=94=A8.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cap函数有误 --- .../day07_Slice\347\232\204\344\275\277\347\224\250.md" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/Day01-15(Go\350\257\255\350\250\200\345\237\272\347\241\200)/day07_Slice\347\232\204\344\275\277\347\224\250.md" "b/Day01-15(Go\350\257\255\350\250\200\345\237\272\347\241\200)/day07_Slice\347\232\204\344\275\277\347\224\250.md" index 3c5c6db..7d42fa3 100644 --- "a/Day01-15(Go\350\257\255\350\250\200\345\237\272\347\241\200)/day07_Slice\347\232\204\344\275\277\347\224\250.md" +++ "b/Day01-15(Go\350\257\255\350\250\200\345\237\272\347\241\200)/day07_Slice\347\232\204\344\275\277\347\224\250.md" @@ -312,7 +312,7 @@ func printSlice(x []int){ len=0 cap=0 slice=[] len=1 cap=2 slice=[0] len=2 cap=2 slice=[0 1] -len=5 cap=8 slice=[0 1 2 3 4] +len=5 cap=6 slice=[0 1 2 3 4] len=5 cap=12 slice=[0 1 2 3 4] ``` @@ -334,4 +334,4 @@ https://www.bilibili.com/video/av47467197 源代码: -https://github.com/rubyhan1314/go_foundation \ No newline at end of file +https://github.com/rubyhan1314/go_foundation