mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-10-23 06:51:44 +00:00
ch2: fix code path
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user