From 721bb46068f518ea991732894cfb7b2ce092238d Mon Sep 17 00:00:00 2001 From: Arvind Gautam <1295124+agautam@users.noreply.github.com> Date: Mon, 4 Jul 2022 13:41:56 -0400 Subject: [PATCH] changing names of params 'integer' and 'boolean' may be reserved words in some other popular languages. For new learners this may be confusing and easy to misinterpret. --- src/primitives/tuples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/primitives/tuples.md b/src/primitives/tuples.md index 3469c08943..f4b59c04bf 100644 --- a/src/primitives/tuples.md +++ b/src/primitives/tuples.md @@ -9,9 +9,9 @@ use tuples to return multiple values, as tuples can hold any number of values. // Tuples can be used as function arguments and as return values fn reverse(pair: (i32, bool)) -> (bool, i32) { // `let` can be used to bind the members of a tuple to variables - let (integer, boolean) = pair; + let (int_param, bool_param) = pair; - (boolean, integer) + (bool_param, int_param) } // The following struct is for the activity.