From 31833e441870bea70b4e66a18d160a885586deea Mon Sep 17 00:00:00 2001 From: Michele Sessa Date: Wed, 12 Oct 2022 15:32:53 +0100 Subject: [PATCH] refactor(tuples_refs): change id type for more idiomatic rust --- subjects/tuples_refs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/tuples_refs/README.md b/subjects/tuples_refs/README.md index ebdb2a4b7..d3ec80803 100644 --- a/subjects/tuples_refs/README.md +++ b/subjects/tuples_refs/README.md @@ -2,12 +2,12 @@ ### Instructions -- Define a tuple `struct` to represent a `Student`. Each is identified by an id of type `i32`, their first name and last name. +- Define a tuple `struct` to represent a `Student`. Each is identified by an id of type `u32`, their first name and last name. - Then define three **functions** to return the id, first name and last name. ```rust -pub fn id(student: &Student) -> i32 { +pub fn id(student: &Student) -> u32 { } pub fn first_name(student: &Student) -> String {