Skip to content

More *idiomatic* Rust - #14

Open
xehpuk wants to merge 1 commit into
tsoding:mainfrom
xehpuk:patch-1
Open

More *idiomatic* Rust#14
xehpuk wants to merge 1 commit into
tsoding:mainfrom
xehpuk:patch-1

Conversation

@xehpuk

@xehpuk xehpuk commented Dec 30, 2023

Copy link
Copy Markdown

Replace checked_sub().unwrap_or(0) with saturating_sub().

@xehpuk xehpuk changed the title More _ideomatic_ Rust More *idiomatic* Rust Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant