Skip to content

Commit

Permalink
fix docs comment indent
Browse files Browse the repository at this point in the history
  • Loading branch information
micahkendall committed Sep 12, 2023
1 parent 283bc55 commit c24fb5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/aiken/list.ak
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,14 @@ test has_3() {
has([], 14) == False
}

// list.index_of([1, 5, 2], 2) == Some(2)
// list.index_of([1, 7, 3], 4) == None
// list.index_of([1, 0, 9, 6], 6) == 3
// list.index_of([], 6) == None
// ```
/// Gets the index of an element of a list, if any. Otherwise, returns None.
///
/// ```aiken
/// list.index_of([1, 5, 2], 2) == Some(2)
/// list.index_of([1, 7, 3], 4) == None
/// list.index_of([1, 0, 9, 6], 6) == 3
/// list.index_of([], 6) == None
/// ```
pub fn index_of(self: List<a>, elem: a) -> Option<Int> {
when self is {
[] -> None
Expand Down

0 comments on commit c24fb5d

Please sign in to comment.