ch2: fix code path

This commit is contained in:
chai2010
2016-01-20 23:16:19 +08:00
parent 442dd58ee4
commit 7fe7a309be
7 changed files with 41 additions and 51 deletions

View File

@@ -20,8 +20,8 @@ type 類型名字 底層類型
爲了説明類型聲明,我們將不同溫度單位分别定義爲不同的類型:
<u><i>gopl.io/ch2/tempconv0</i></u>
```Go
gopl.io/ch2/tempconv0
// Package tempconv performs Celsius and Fahrenheit temperature computations.
package tempconv
@@ -90,5 +90,3 @@ fmt.Println(c) // "100°C"
fmt.Printf("%g\n", c) // "100"; does not call String
fmt.Println(float64(c)) // "100"; does not call String
```