Skip to content

Commit

Permalink
fix(doc/go): fix binary_tree doc (krahets#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reanon authored Mar 16, 2023
1 parent 06f87d8 commit fcdc96e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/chapter_tree/binary_tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@
=== "Go"

```go title=""

/* 二叉树的数组表示 */
// 使用 any 类型的切片, 就可以使用 nil 来标记空位
tree := []any{1, 2, 3, 4, nil, 6, 7, 8, 9, nil, nil, 12, nil, nil, 15}
```

=== "JavaScript"
Expand Down

0 comments on commit fcdc96e

Please sign in to comment.