Skip to content

Commit 85c93c3

Browse files
tomalexhugheslpil
authored andcommitted
Fix typos in promise.gleam doc comments
1 parent c0b4215 commit 85c93c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gleam/javascript/promise.gleam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ pub fn resolve(a: value) -> Promise(value)
4848
/// If the promise is in an error state then apply a function to convert the
4949
/// error value back into valid value, making the promise healthy again.
5050
///
51-
/// This is the equivilent of the `promise.catch` JavaScript method.
51+
/// This is the equivalent of the `promise.catch` JavaScript method.
5252
///
5353
@external(javascript, "../../gleam_javascript_ffi.mjs", "rescue")
5454
pub fn rescue(a: Promise(value), b: fn(Dynamic) -> value) -> Promise(value)
5555

5656
/// Chain a second asynchronous operation onto a promise, so it runs after the
5757
/// promise has resolved.
5858
///
59-
/// This is the equivilent of the `promise.then` JavaScript method.
59+
/// This is the equivalent of the `promise.then` JavaScript method.
6060
///
6161
@external(javascript, "../../gleam_javascript_ffi.mjs", "then_await")
6262
pub fn await(a: Promise(a), b: fn(a) -> Promise(b)) -> Promise(b)
@@ -123,7 +123,7 @@ pub fn try_await(
123123
/// Chain an asynchronous operation onto an array of promises, so it runs after the
124124
/// promises have resolved.
125125
///
126-
/// This is the equivilent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
126+
/// This is the equivalent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
127127
/// JavaScript static method.
128128
///
129129
@external(javascript, "../../gleam_javascript_ffi.mjs", "all_promises")
@@ -132,7 +132,7 @@ pub fn await_array(a: Array(Promise(a))) -> Promise(Array(a))
132132
/// Chain an asynchronous operation onto an list of promises, so it runs after the
133133
/// promises have resolved.
134134
///
135-
/// This is the equivilent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
135+
/// This is the equivalent of the [`Promise.all`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
136136
/// JavaScript static method.
137137
///
138138
pub fn await_list(xs: List(Promise(a))) -> Promise(List(a)) {

0 commit comments

Comments
 (0)