Add i32/u32 suffix for numeric literals in 04_traits/01_trait (#20)
authorFangyi Zhou <me@fangyi.io>
Wed, 22 May 2024 09:04:04 +0000 (10:04 +0100)
committerGitHub <noreply@github.com>
Wed, 22 May 2024 09:04:04 +0000 (11:04 +0200)
commit5bb9333ae92378b2333d7f7e09d279eaaf916bd7
tree3550641ac5652559dd0090ffc80230364c4ae549
parente5eee2e83c683bb520c34f413f5bbfe0c6028dc2
Add i32/u32 suffix for numeric literals in 04_traits/01_trait (#20)

Without an explicit suffix, the compiler is able to use the i32
implementation without the need for an u32 implementation.
exercises/04_traits/01_trait/src/lib.rs