Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[Josh] Week 3 solution #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[Josh] Week 3 solution #4

wants to merge 2 commits into from

Conversation

joshhbk
Copy link

@joshhbk joshhbk commented Jan 27, 2023

No description provided.

Comment on lines +14 to +15
Shape::Square(length) => (length * length) as f64,
Shape::Rectangle(width, height) => (height * width) as f64,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too sure about the types here. Is there a better way to handle this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant