Skip to content

Commit

Permalink
fix: typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
muqiuhan committed Mar 11, 2024
1 parent 757ddd2 commit 985f963
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions stack/stack.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ test "push" {
@assertion.assert_eq(s.len, 1)?
}

/// Push a list into the stack`
/// Push a list into the stack
///
/// # Example
///
Expand Down Expand Up @@ -446,7 +446,7 @@ test "iter" {
}
}

/// Iterates over the list with index.
/// Iterates over the stack with index.
pub fn iteri[T](self : Stack[T], f : (Int, T) -> Unit) {
self.elements.iteri(f)
}
Expand Down Expand Up @@ -553,8 +553,8 @@ test "map" {
)?
}

/// Checks if all elements of the list satisfy the predicate f.
/// If the list is empty, return true.
/// Checks if all elements of the stack satisfy the predicate f.
/// If the stack is empty, return true.
///
/// NOTE: Since the current standard library List lacks the forall function,
/// this function internally implements the forall function of List.
Expand Down Expand Up @@ -585,11 +585,7 @@ test "forall" {
)?
}

/// Checks if all elements of the list satisfy the predicate f.
/// If the list is empty, return true.
///
/// NOTE: Since the current standard library List lacks the forall function,
/// this function internally implements the forall function of List.
/// Reverse stack
///
/// # Example
///
Expand Down

0 comments on commit 985f963

Please sign in to comment.