maintain consistency with variable cases
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user