修正英文括号 --> 中文全角括号

This commit is contained in:
dake
2015-10-25 00:58:45 +08:00
parent 8bd2a891c2
commit 52cac078fb
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ func (tn *TwoInts) String() string {
输出:
two1 is: (12/10)
two1 is: (12/10)
two1 is: (12/10)
two1 is: *main.TwoInts
two1 is: &main.TwoInts{a:12, b:10}
@@ -45,7 +45,7 @@ func (tn *TwoInts) String() string {
**备注**
不要在 `String()` 方法里面调用涉及 `String()` 方法的方法,它会导致意料之外的错误,比如下面的例子,它导致了一个无限迭代(递归)调用(`TT.String()` 调用 `fmt.Sprintf`,而 `fmt.Sprintf` 又会反过来调用 `TT.String()`...),很快就会导致内存溢出:
不要在 `String()` 方法里面调用涉及 `String()` 方法的方法,它会导致意料之外的错误,比如下面的例子,它导致了一个无限迭代递归调用(`TT.String()` 调用 `fmt.Sprintf`,而 `fmt.Sprintf` 又会反过来调用 `TT.String()`...),很快就会导致内存溢出:
```go
type TT float64