Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/primitives/tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down