Skip to content

Commit 352b7ab

Browse files
committed
Document the cfg required for Map::shift_insert to exist
1 parent c17e63f commit 352b7ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/map.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ impl Map<String, Value> {
134134
/// If the map did have this key present, the key is moved to the new
135135
/// position, the value is updated, and the old value is returned.
136136
#[cfg(feature = "preserve_order")]
137+
#[cfg_attr(docsrs, doc(cfg(feature = "preserve_order")))]
137138
pub fn shift_insert(&mut self, index: usize, k: String, v: Value) -> Option<Value> {
138139
self.map.shift_insert(index, k, v)
139140
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy