]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/collections/btree/map.rs
Rollup merge of #89869 - kpreid:from-doc, r=yaahc
[rust.git] / library / alloc / src / collections / btree / map.rs
index cdb961d4cfbc5e697ebf49635231e5959aca84a3..67f5b386ecd7fd05a58f1baccabb51695e863853 100644 (file)
@@ -2052,6 +2052,8 @@ fn index(&self, key: &Q) -> &V {
 
 #[stable(feature = "std_collections_from_array", since = "1.56.0")]
 impl<K: Ord, V, const N: usize> From<[(K, V); N]> for BTreeMap<K, V> {
+    /// Converts a `[(K, V); N]` into a `BTreeMap<(K, V)>`.
+    ///
     /// ```
     /// use std::collections::BTreeMap;
     ///