aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdi Salimgereev <adisalimgereev@gmail.com>2023-09-25 22:18:27 +0600
committerLouis Pilfold <louis@lpil.uk>2023-09-27 12:06:34 +0100
commitee3045b052a99c6a753d8ddc8b583a643de007e2 (patch)
tree3c3a2b63e7b3f82bafebe05cfafa7f253c96f8b8
parente20352a201499b0e2c662b581ba471daf0698563 (diff)
downloadgleam_stdlib-ee3045b052a99c6a753d8ddc8b583a643de007e2.tar.gz
gleam_stdlib-ee3045b052a99c6a753d8ddc8b583a643de007e2.zip
Fix typos
-rw-r--r--CHANGELOG.md8
-rw-r--r--src/gleam/bit_builder.gleam2
-rw-r--r--src/gleam/list.gleam2
3 files changed, 6 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 78ab5b9..8e52b72 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -93,7 +93,7 @@
- The `dynamic` module is able to decode simple JavaScript objects to maps.
So, the behaviour of the `field` and `object` functions are consistent.
- For a given empty list as an argument, `int.product` now returns `1` instead
- of `0`, and `float.product` now returns `1.0` instead of `0.0`. This mimicks
+ of `0`, and `float.product` now returns `1.0` instead of `0.0`. This mimics
the behavior of Elixir's `Enum.product/1`.
## v0.26.0 - 2023-01-12
@@ -304,7 +304,7 @@
- The `dynamic.result` function has been made more permissive to other result
values.
- The `dynamic.thunk` function has been removed.
-- The `dynamic.element` label `postion` was renamed to `get`.
+- The `dynamic.element` label `position` was renamed to `get`.
- The `dynamic.element` now accepts negative indexes.
- The `io.get_line` function has been moved to the `gleam_erlang` library.
- The `atom` module has been moved to the `gleam_erlang` library.
@@ -464,7 +464,7 @@
- The `list.sort` label `sort_by` has been changed to `by`.
- The `list.fold`'s first argument gained the label `over`.
- The `map.fold`'s first argument gained the label `over`.
-- The `map.take`'s `drop` arguement has been changed to `keeping`.
+- The `map.take`'s `drop` argument has been changed to `keeping`.
## v0.8.0 - 2020-04-28
@@ -472,7 +472,7 @@
- The `string` module gains `contains` and `repeat` functions.
- The `expect` module has been renamed to `should`. Functions in the module
starting with `is_` have been changed to `be_`.
-- The `string.replace` and `iodata.replace` `all` arguement label has been
+- The `string.replace` and `iodata.replace` `all` argument label has been
changed to `each`.
- The `string` module gains `is_empty`, `join` and `concat` functions.
- The `int` module gains `is_even` and `is_odd` functions.
diff --git a/src/gleam/bit_builder.gleam b/src/gleam/bit_builder.gleam
index 03f0bff..b880334 100644
--- a/src/gleam/bit_builder.gleam
+++ b/src/gleam/bit_builder.gleam
@@ -28,7 +28,7 @@ pub opaque type BitBuilder {
Many(List(BitBuilder))
}
-/// Create an empty `BitBuilder`. Useful as the start of a pipe chaning many
+/// Create an empty `BitBuilder`. Useful as the start of a pipe chaining many
/// builders together.
///
pub fn new() -> BitBuilder {
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam
index 4836f92..6be2f61 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -2102,7 +2102,7 @@ fn do_shuffle_by_pair_indexes(
/// Takes a list, randomly sorts all items and returns the shuffled list.
///
/// This function uses Erlang's `:rand` module or Javascript's
-/// `Math.random()` to calcuate the index shuffling.
+/// `Math.random()` to calculate the index shuffling.
///
/// ## Example
///