why is the capacity of the slice changing? shouldn't it be the same?

前端 未结 0 1020
太阳男子
太阳男子 2020-12-31 13:32

I am fairly new to go and this example has had me baffled:

import "fmt"

func main() {
    s := []int{2, 3, 5, 7, 11, 13}
    printSlice(s)

    //          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题