Description
The minus sign in mathematical expressions for i*::MIN
, i*::MAX
and u*::MAX
is rendered using U+002D (see images below). U+002D looks bad in that context; U+2212 is more suitable and looks better in mathematical expressions.
Note: I had already opened PR #90777 to fix this, but it was closed. I opened the issue to discuss this here instead of in an already-closed PR. The reason given for closing is:
In Rust, negative numbers are expressed using U+002D HYPHEN-MINUS, and our documentation should be consistent with Rust code, rather than using a confusingly similar symbol.
But I don't agree with that: here the minus sign is in a mathematical expression that is not code. If it were an expression in verbatim code then yes, U+002D would be better, but for example −231 cannot be written in code anyway (the code -2i32.pow(31)
wouldn't even work).