mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
ch1-04: 修复代码错误
This commit is contained in:
parent
73a228a98d
commit
b5e426fda9
@ -63,7 +63,8 @@ func Print(a ...interface{}) {
|
||||
|
||||
```go
|
||||
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