about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDavid Ross <daboross@daboross.net>2017-11-28 21:35:18 -0800
committerGitHub <noreply@github.com>2017-11-28 21:35:18 -0800
commit2c98378ace8d9d406c9701844a7e556def6f7cbc (patch)
treed7663afac8044e4dfbd69933b38496822e717072 /src/libstd
parent77ab3a1d5ff69c0cb3eb85a75ef734eaf7429f1b (diff)
downloadrust-2c98378ace8d9d406c9701844a7e556def6f7cbc.tar.gz
rust-2c98378ace8d9d406c9701844a7e556def6f7cbc.zip
Reject '2' as a binary digit in internals of 'b' formatting
I don't believe the previous code `0 ... 2` would run into any real problems, but it seems confusing to read, given that '2' is never a valid binary digit.

As far as I can tell this code is only ever called from within another private method in the trait which has logic to never hand it '2' anyways. I thought we could change this for clarity anyways.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions