7.5调整变量名命名规范问题 (#750)

This commit is contained in:
武沫汐
2020-01-21 23:30:00 +08:00
committed by ᴜɴᴋɴᴡᴏɴ
parent 0f26273836
commit 57cb2ed0c6
2 changed files with 8 additions and 8 deletions

View File

@@ -3,11 +3,11 @@ package main
import "fmt"
func main() {
sl_from := []int{1, 2, 3}
sl_to := make([]int, 10)
slFrom := []int{1, 2, 3}
slTo := make([]int, 10)
n := copy(sl_to, sl_from)
fmt.Println(sl_to) // output: [1 2 3 0 0 0 0 0 0 0]
n := copy(slTo, slFrom)
fmt.Println(slTo) // output: [1 2 3 0 0 0 0 0 0 0]
fmt.Printf("Copied %d elements\n", n) // n == 3
sl3 := []int{1, 2, 3}