Skip to content

Commit 78fa5e1

Browse files
authored
Merge pull request krahets#184 from XC-Zero/patch-1
Update data_and_memory.md
2 parents b58cd21 + 78c2b94 commit 78fa5e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/chapter_data_structure/data_and_memory.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ comments: true
7474
=== "Go"
7575

7676
```go title=""
77-
77+
// 使用多种「基本数据类型」来初始化「数组」
78+
var numbers = [5]int{}
79+
var decimals = [5]float64{}
80+
var characters = [5]byte{}
81+
var booleans = [5]bool{}
7882
```
7983

8084
=== "JavaScript"

0 commit comments

Comments
 (0)