ES.23: change example code to better match the rule (#2150)
The example suggests that `int z = gsl::narrow_cast<int>(7.9);;` is OK. The rule says "Use `=` only when you are sure that there can be no narrowing conversions.", which matches, but is also says "For built-in arithmetic types, use `=` only with `auto`.", and this is not respected here. So replace the one line with both possibilities suggested by the rule. Co-authored-by: Werner Henze <w.henze@avm.de>pull/2156/head
parent
a43285d95a
commit
2d87c45e4b
Loading…
Reference in New Issue