Skip to content

Commit

Permalink
docs: Fix example to imply correct argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
erikareads committed Dec 22, 2023
1 parent d99000b commit 190cbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gleam/set.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub fn from_list(members: List(member)) -> Set(member) {
///
/// ```gleam
/// > from_list([1, 3, 9])
/// > |> fold(0, fn(member, accumulator) { accumulator + member })
/// > |> fold(0, fn(accumulator, member) { accumulator + member })
/// 13
/// ```
///
Expand Down

0 comments on commit 190cbee

Please sign in to comment.