Improvements to comments in libstd, libcore, liballoc.
This commit is contained in:
parent
9d71ec1358
commit
8629fd3e4e
15 changed files with 39 additions and 36 deletions
|
|
@ -19,7 +19,7 @@ use super::table::{self, Bucket, EmptyBucket, Fallibility, FullBucket, FullBucke
|
|||
use super::table::BucketState::{Empty, Full};
|
||||
use super::table::Fallibility::{Fallible, Infallible};
|
||||
|
||||
const MIN_NONZERO_RAW_CAPACITY: usize = 32; // must be a power of two
|
||||
const MIN_NONZERO_RAW_CAPACITY: usize = 32; // must be a power of two
|
||||
|
||||
/// The default behavior of HashMap implements a maximum load factor of 90.9%.
|
||||
#[derive(Clone)]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use super::Recover;
|
|||
use super::map::{self, HashMap, Keys, RandomState};
|
||||
|
||||
// Future Optimization (FIXME!)
|
||||
// =============================
|
||||
// ============================
|
||||
//
|
||||
// Iteration over zero sized values is a noop. There is no need
|
||||
// for `bucket.val` in the case of HashSet. I suppose we would need HKT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue