@@ -290,7 +290,9 @@ impl<K, V> HashMap<K, V, DefaultHashBuilder> {
290290 /// The hash map is initially created with a capacity of 0, so it will not allocate until it
291291 /// is first inserted into.
292292 ///
293- /// Warning: `hash_builder` normally use a fixed key by default and that does
293+ /// # HashDoS resistance
294+ ///
295+ /// The `hash_builder` normally use a fixed key by default and that does
294296 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
295297 /// Users who require HashDoS resistance should explicitly use
296298 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -318,7 +320,9 @@ impl<K, V> HashMap<K, V, DefaultHashBuilder> {
318320 /// The hash map will be able to hold at least `capacity` elements without
319321 /// reallocating. If `capacity` is 0, the hash map will not allocate.
320322 ///
321- /// Warning: `hash_builder` normally use a fixed key by default and that does
323+ /// # HashDoS resistance
324+ ///
325+ /// The `hash_builder` normally use a fixed key by default and that does
322326 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
323327 /// Users who require HashDoS resistance should explicitly use
324328 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -349,7 +353,9 @@ impl<K, V, A: Allocator + Clone> HashMap<K, V, DefaultHashBuilder, A> {
349353 /// The hash map is initially created with a capacity of 0, so it will not allocate until it
350354 /// is first inserted into.
351355 ///
352- /// Warning: `hash_builder` normally use a fixed key by default and that does
356+ /// # HashDoS resistance
357+ ///
358+ /// The `hash_builder` normally use a fixed key by default and that does
353359 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
354360 /// Users who require HashDoS resistance should explicitly use
355361 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -398,7 +404,9 @@ impl<K, V, A: Allocator + Clone> HashMap<K, V, DefaultHashBuilder, A> {
398404 /// The hash map will be able to hold at least `capacity` elements without
399405 /// reallocating. If `capacity` is 0, the hash map will not allocate.
400406 ///
401- /// Warning: `hash_builder` normally use a fixed key by default and that does
407+ /// # HashDoS resistance
408+ ///
409+ /// The `hash_builder` normally use a fixed key by default and that does
402410 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
403411 /// Users who require HashDoS resistance should explicitly use
404412 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -455,7 +463,9 @@ impl<K, V, S> HashMap<K, V, S> {
455463 /// The hash map is initially created with a capacity of 0, so it will not
456464 /// allocate until it is first inserted into.
457465 ///
458- /// Warning: `hash_builder` normally use a fixed key by default and that does
466+ /// # HashDoS resistance
467+ ///
468+ /// The `hash_builder` normally use a fixed key by default and that does
459469 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
460470 /// Users who require HashDoS resistance should explicitly use
461471 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -495,7 +505,9 @@ impl<K, V, S> HashMap<K, V, S> {
495505 /// The hash map will be able to hold at least `capacity` elements without
496506 /// reallocating. If `capacity` is 0, the hash map will not allocate.
497507 ///
498- /// Warning: `hash_builder` normally use a fixed key by default and that does
508+ /// # HashDoS resistance
509+ ///
510+ /// The `hash_builder` normally use a fixed key by default and that does
499511 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
500512 /// Users who require HashDoS resistance should explicitly use
501513 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -543,7 +555,9 @@ impl<K, V, S, A: Allocator + Clone> HashMap<K, V, S, A> {
543555 /// The hash map is initially created with a capacity of 0, so it will not allocate until it
544556 /// is first inserted into.
545557 ///
546- /// Warning: `hash_builder` normally use a fixed key by default and that does
558+ /// # HashDoS resistance
559+ ///
560+ /// The `hash_builder` normally use a fixed key by default and that does
547561 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
548562 /// Users who require HashDoS resistance should explicitly use
549563 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -576,7 +590,9 @@ impl<K, V, S, A: Allocator + Clone> HashMap<K, V, S, A> {
576590 /// The hash map will be able to hold at least `capacity` elements without
577591 /// reallocating. If `capacity` is 0, the hash map will not allocate.
578592 ///
579- /// Warning: `hash_builder` normally use a fixed key by default and that does
593+ /// # HashDoS resistance
594+ ///
595+ /// The `hash_builder` normally use a fixed key by default and that does
580596 /// not allow the `HashMap` to be protected against attacks such as [`HashDoS`].
581597 /// Users who require HashDoS resistance should explicitly use
582598 /// [`ahash::RandomState`] or [`std::collections::hash_map::RandomState`]
@@ -6193,7 +6209,7 @@ impl<'a, 'b, K, Q: ?Sized, V, S, A: Allocator + Clone> OccupiedEntryRef<'a, 'b,
61936209 ///
61946210 /// # Panics
61956211 ///
6196- /// Will panic if this OccupiedEntryRef was created through [`Entry ::insert`].
6212+ /// Will panic if this OccupiedEntryRef was created through [`EntryRef ::insert`].
61976213 ///
61986214 /// # Examples
61996215 ///
0 commit comments