mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 20:52:22 +00:00
ch1-04: 修复代码错误
This commit is contained in:
parent
73a228a98d
commit
b5e426fda9
@ -63,7 +63,8 @@ func Print(a ...interface{}) {
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
func Find(m map[int]int, key int) (value int, ok bool) {
|
func Find(m map[int]int, key int) (value int, ok bool) {
|
||||||
return m[key]
|
value, ok = m[key]
|
||||||
|
return
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user