Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak wording on map description #512

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/primitive/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,7 @@ primitive!(
/// ex: ↧5 ∞
/// ex: ↥5 ∞
(0, Infinity, Constant, ("infinity", '∞')),
/// Create a hashmap from lists of keys and values
/// Create a hashmap from a list of keys and list values
///
/// A hashmap is a normal array that is used as a mapping from keys to values.
/// The related map functions [insert], [has], and [get], all treat the array as an actual hashmap, so they have O(1) amortized time complexity.
Expand All @@ -2200,10 +2200,10 @@ primitive!(
/// Use [insert] to insert additional key-value pairs.
/// ex: map 1_2 3_4
/// : insert 5 6
/// An empty array can be used as an empty map, even if it was not created with [map].
/// An empty array can be used as an empty map, event if it was not created with [map].
/// ex: has 5 []
/// : insert 1 2 []
/// You can use [un][map] to get the keys and values back.
/// You can use [un][map] to get the keys list and values list back.
/// ex: []
/// : insert 1 2_3
/// : insert 4 5_6
Expand Down