ch4: fix code path

This commit is contained in:
chai2010
2016-01-20 23:36:24 +08:00
parent ca0f87fad9
commit 3666d2f0e8
9 changed files with 16 additions and 30 deletions

View File

@@ -78,9 +78,8 @@ type Employee struct {
一個命名爲S的結構體類型將不能再包含S類型的成員因爲一個聚合的值不能包含它自身。該限製同樣適應於數組。但是S類型的結構體可以包含`*S`指針類型的成員,這可以讓我們創建遞歸的數據結構,比如鏈表和樹結構等。在下面的代碼中,我們使用一個二叉樹來實現一個插入排序:
<u><i>gopl.io/ch4/treesort</i></u>
```Go
gopl.io/ch4/treesort
type tree struct {
value int
left, right *tree