Skip to content

Commit 5bdd7b3

Browse files
authored
docs: 错别字修改 (#60)
1 parent 568025d commit 5bdd7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/essential/base/80.method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (i IntSlice) Len() int {
2121
}
2222
```
2323

24-
先声明了一个类型`IntSlice`,其底层类型为`[]int`,再声明了三个方法`Get``Set``Len`,方法的长相与函数并无太大的区别,只是多了一小段`(i IntSlice)``i`就是接收者,`IntSlice`就是接收者的类型,接收者就类似于其他语言中的`this``self`,只不过在 Go 中需要显示的指明
24+
先声明了一个类型`IntSlice`,其底层类型为`[]int`,再声明了三个方法`Get``Set``Len`,方法的长相与函数并无太大的区别,只是多了一小段`(i IntSlice)``i`就是接收者,`IntSlice`就是接收者的类型,接收者就类似于其他语言中的`this``self`,只不过在 Go 中需要显式的指明
2525

2626
```go
2727
func main() {

0 commit comments

Comments
 (0)