Skip to content

Commit e063085

Browse files
committed
fix typo
1 parent 33ec5e0 commit e063085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zh/02.5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func main() {
4040

4141
用上面提到的形状的例子来说,method `area()` 是依赖于某个形状(比如说Rectangle)来发生作用的。Rectangle.area()的发出者是Rectangle, area()是属于Rectangle的方法,而非一个外围函数。
4242

43-
更具体地说,Rectangle存在字段length 和 width, 同时存在方法area(), 这些字段和方法都属于Rectangle。
43+
更具体地说,Rectangle存在字段 height 和 width, 同时存在方法area(), 这些字段和方法都属于Rectangle。
4444

4545
用Rob Pike的话来说就是:
4646

0 commit comments

Comments
 (0)