]> git.lizzy.rs Git - rust.git/commit
may not -> might not
authorJoshua Nelson <jyn514@gmail.com>
Sat, 27 Mar 2021 19:56:07 +0000 (15:56 -0400)
committerJoshua Nelson <jyn514@gmail.com>
Sat, 27 Mar 2021 20:01:16 +0000 (16:01 -0400)
commite051db6838496baf97fc34e63c36c73a6ea1c7f7
tree822f8ced2f9e18da597db5746fdbf8f99353980e
parentbba40880c0750f880119b4517821ffe0a96f74d1
may not -> might not

"may not" has two possible meanings:
1. A command: "You may not stay up past your bedtime."
2. A fact that's only sometimes true: "Some cities may not have bike lanes."

In some cases, the meaning is ambiguous: "Some cars may not have snow
tires." (do the cars *happen* to not have snow tires, or is it
physically impossible for them to have snow tires?)

This changes places where the standard library uses the "description of
fact" meaning to say "might not" instead.

This is just `std::vec` for now - if you think this is a good idea I can
convert the rest of the standard library.
library/alloc/src/vec/mod.rs