Skip to content

Commit

Permalink
Document the cfg required for Map::shift_insert to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 30, 2024
1 parent c17e63f commit 352b7ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 134,7 @@ impl Map<String, Value> {
/// If the map did have this key present, the key is moved to the new
/// position, the value is updated, and the old value is returned.
#[cfg(feature = "preserve_order")]
#[cfg_attr(docsrs, doc(cfg(feature = "preserve_order")))]
pub fn shift_insert(&mut self, index: usize, k: String, v: Value) -> Option<Value> {
self.map.shift_insert(index, k, v)
}
Expand Down

0 comments on commit 352b7ab

Please sign in to comment.