You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pub fn calculate_area() -> u32 {
// TODO: Implement the function here
// Declare width and height as immutable variables
// Calculate the area of the rectangle
// Return the calculated area
let width: u32 = 10;
let height: u32 = 5;
let area: u32 = width * height;
return area;
}
in declaring variables of part, why return area test error, and not everyone use area? the error from "test_variables"
The text was updated successfully, but these errors were encountered:
in declaring variables of part, why
return area
test error, and not everyone usearea
? the error from "test_variables"The text was updated successfully, but these errors were encountered: