It maybe a typo

litbear 2021-09-13 10:47:21 +08:00
parent 19a3e9c4e3
commit 75c3834c67

@ -103,7 +103,7 @@ s[i] = x
#### InsertVector
```go
a = append(a[:i], append(b, a[i:]...)...)
a = append(a[:i], append([]T{b}, a[i:]...)...)
// The above one-line way copies a[i:] twice and
// allocates at least once.