Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Lampese authored and bobzhang committed Mar 19, 2024
1 parent 815593e commit f25c461
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions array/array.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub fn iter_rev[T](self : Array[T], f : (T) -> Unit) -> Unit {
}
}

test "iter rev" {
test "iter_rev" {
let mut i = 6
let mut failed = false
[1, 2, 3, 4, 5].iter_rev(
Expand Down Expand Up @@ -157,7 +157,7 @@ pub fn map_with_index[T, U](self : Array[T], f : (T, Int) -> U) -> Array[U] {
res
}

test "map with index" {
test "map_with_index" {
let arr = [1, 2, 3, 4, 5]
let doubled = arr.map_with_index(fn(x, i) { x * 2 + i })
let empty : Array[Int] = Array::default().map_with_index(fn(x, i) { x + i })
Expand Down
4 changes: 2 additions & 2 deletions vec/vec.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ test "iter" {
@assertion.assert_eq(sum, 12)?
}

/// Iterates over the elements of the vector with index
/// Iterates over the elements of the vector with index.
///
/// # Example
/// ```
Expand Down Expand Up @@ -485,7 +485,7 @@ test "ends_with" {
@assertion.assert_false(v.ends_with(Vec::[2, 3, 4, 5]))?
}

/// Search the vector index for a given element
/// Search the vector index for a given element.
///
/// # Example
/// ```
Expand Down

0 comments on commit f25c461

Please sign in to comment.