We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae8ab87 commit fe03f76Copy full SHA for fe03f76
library/std/src/collections/hash/map.rs
@@ -973,6 +973,9 @@ where
973
/// Returns an array of length `N` with the results of each query. For soundness, at most one
974
/// mutable reference will be returned to any value. `None` will be used if the key is missing.
975
///
976
+ /// This method performs a check to ensure there are no duplicate keys, which has time-complexity O(n^2),
977
+ /// so be careful when passing many keys.
978
+ ///
979
/// # Panics
980
981
/// Panics if any keys are overlapping.
0 commit comments