1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-16 05:54:53 +02:00

Merge pull request #250 from zulmaster/patch-1

Update to "Named return values"
This commit is contained in:
Rico Sta. Cruz
2017-11-27 19:58:51 +08:00
committed by GitHub

4
go.md
View File

@@ -230,8 +230,8 @@ func getMessage() (a string, b string) {
```go ```go
func split(sum int) (x, y int) { func split(sum int) (x, y int) {
x := sum * 4 / 9 x = sum * 4 / 9
y := sum - x y = sum - x
return return
} }
``` ```