mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
slightly better english grammer and makes it easier to understand which is the prefered method
parent
cd35be262b
commit
771f1c7c76
@ -53,11 +53,11 @@ and so on.
|
||||
|
||||
## Declaring Empty Slices
|
||||
|
||||
When declaring a slice, prefer
|
||||
When declaring a slice, use
|
||||
```go
|
||||
var t []string
|
||||
```
|
||||
to
|
||||
rather than
|
||||
```go
|
||||
t := []string{}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user