ch6: fix code format

This commit is contained in:
chai2010
2016-01-21 10:08:07 +08:00
parent 20a8cf71b9
commit 2420954025
7 changed files with 90 additions and 88 deletions

View File

@@ -4,8 +4,8 @@
```go
func (p *Point) ScaleBy(factor float64) {
p.X *= factor
p.Y *= factor
p.X *= factor
p.Y *= factor
}
```
@@ -27,6 +27,7 @@ r := &Point{1, 2}
r.ScaleBy(2)
fmt.Println(*r) // "{2, 4}"
```
或者這樣:
```go