rustc-dev-guide icon indicating copy to clipboard operation
rustc-dev-guide copied to clipboard

Correct an example

Open Arthur-Milchior opened this issue 11 months ago • 0 comments

The function, as written, is not valid. a is not bounded. Given the parameter and the return type, I assume we are considering the identity function for u32. In this case, the return value should be b. As I was touching this code, I considered also changing the function name, for the sake of the clarity.

Arthur-Milchior avatar Mar 16 '24 21:03 Arthur-Milchior