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
commit 7451b686ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
go.md
View File

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