Skip to content

Commit 8a9ed34

Browse files
committed
fix bug in lesson
1 parent fec2c46 commit 8a9ed34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lesson_08_type_silce.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func main() {
1313
fmt.Printf("first len(%d) cap(%d) = %v\n", len(first), cap(first), first) // first len(5) cap(15) = [0 0 0 0 0]
1414
fmt.Printf("second len(%d) cap(%d) = %v\n", len(second), cap(second), second) // second len(7) cap(3) = [0 0 0]
1515
fmt.Printf("third len(%d) cap(%d) = %v\n", len(third), cap(third), third) // third len(0) cap(0) = []
16-
fmt.Printf("fourth len(%d) cap(%d) = %v\n", len(fourth), cap(fourth), fourth) // fourth len(6) cap(6) = [1 2 3 4 5 6]
16+
fmt.Printf("fourth len(%d) cap(%d) = %v\n", len(fourth), cap(fourth), fourth) // fourth len(6) cap(6) = [1 2 3 4 5 6]
1717

1818
fmt.Println("\n------------------------------------------------------------------\n")
1919

0 commit comments

Comments
 (0)