mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 15:25:52 +00:00
Bug 1483062 - Trivial comment fixes. r=me
--HG-- extra : rebase_source : 81beeb90397bc6dbfac21b3e0adccaf63978f437
This commit is contained in:
parent
70253e2770
commit
2b8aa56d1e
@ -289,11 +289,11 @@ public:
|
||||
// Like putNew(), but should be only used when the table is known to be big
|
||||
// enough for the insertion, and hashing cannot fail. Typically this is used
|
||||
// to populate an empty map with known-unique keys after reserving space with
|
||||
// init(), e.g.
|
||||
// reserve(), e.g.
|
||||
//
|
||||
// using HM = HashMap<int,char>;
|
||||
// HM h;
|
||||
// if (!h.init(3)) {
|
||||
// if (!h.reserve(3)) {
|
||||
// MOZ_CRASH("OOM");
|
||||
// }
|
||||
// h.putNewInfallible(1, 'a'); // unique key
|
||||
@ -603,11 +603,11 @@ public:
|
||||
// Like putNew(), but should be only used when the table is known to be big
|
||||
// enough for the insertion, and hashing cannot fail. Typically this is used
|
||||
// to populate an empty set with known-unique elements after reserving space
|
||||
// with init(), e.g.
|
||||
// with reserve(), e.g.
|
||||
//
|
||||
// using HS = HashMap<int>;
|
||||
// HS h;
|
||||
// if (!h.init(3)) {
|
||||
// if (!h.reserve(3)) {
|
||||
// MOZ_CRASH("OOM");
|
||||
// }
|
||||
// h.putNewInfallible(1); // unique element
|
||||
|
Loading…
Reference in New Issue
Block a user