maintain consistency with variable cases

This commit is contained in:
Karthik Nayak
2015-11-15 17:22:34 +05:30
committed by James Miranda
parent 92060844d7
commit 54297adbb1

View File

@@ -251,9 +251,9 @@ We'll use the following example here.
The above example returns two values without names -you have the option of naming them also. If we named the return values, we would just need to use `return` to return the values since they are initialized in the function automatically. Notice that if your functions are going to be used outside of the package, which means your function names start with a capital letter, you'd better write complete statements for `return`; it makes your code more readable.
func SumAndProduct(A, B int) (add int, Multiplied int) {
func SumAndProduct(A, B int) (add int, multiplied int) {
add = A+B
Multiplied = A*B
multiplied = A*B
return
}