Skip to content

Commit 83724ca

Browse files
authored
changing names of params (#1567)
'integer' and 'boolean' may be reserved words in some other popular languages. For new learners this may be confusing and easy to misinterpret.
1 parent c540a7c commit 83724ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/primitives/tuples.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use tuples to return multiple values, as tuples can hold any number of values.
99
// Tuples can be used as function arguments and as return values
1010
fn reverse(pair: (i32, bool)) -> (bool, i32) {
1111
// `let` can be used to bind the members of a tuple to variables
12-
let (integer, boolean) = pair;
12+
let (int_param, bool_param) = pair;
1313
14-
(boolean, integer)
14+
(bool_param, int_param)
1515
}
1616
1717
// The following struct is for the activity.

0 commit comments

Comments
 (0)