mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated SliceTricks (markdown)
parent
b02b191bbf
commit
beefa9fe4e
@ -212,7 +212,7 @@ result := in[:j+1]
|
||||
fmt.Println(result) // [1 2 3 4]
|
||||
```
|
||||
|
||||
### Move to front or append if not present, in place
|
||||
### Move to front, or append if not present, in place
|
||||
|
||||
```go
|
||||
// moveToFront moves needle to the front of haystack, in place if possible.
|
||||
|
Loading…
x
Reference in New Issue
Block a user