Skip to content

Commit

Permalink
Improve the documentation for array.contains
Browse files Browse the repository at this point in the history
  • Loading branch information
Mertsch committed Dec 23, 2022
1 parent c6ca2f9 commit a05f9a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions doc/builtins.md
Original file line number Diff line number Diff line change
Expand Up @@ -665,16 +665,16 @@ array.contains <list> <item>

#### Description

Returns if an `list` contains an specifique element
Returns if a `list` contains a specific `item`.

#### Arguments

- `list`: the input list
- `item`: the input item
- `list`: The input list
- `item`: The input item

#### Returns

**true** if element is in `list`; otherwise **false**
**true** if `item` is in `list`; otherwise **false**

#### Examples

Expand Down
8 changes: 4 additions & 4 deletions src/Scriban/Functions/ArrayFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,11 @@ public static IEnumerable Uniq(IEnumerable list)
}

/// <summary>
/// Returns if an `list` contains an specifique element
/// Returns if a `list` contains a specific `item`.
/// </summary>
/// <param name="list">the input list</param>
/// <param name="item">the input item</param>
/// <returns>**true** if element is in `list`; otherwise **false**</returns>
/// <param name="list">The input list</param>
/// <param name="item">The input item</param>
/// <returns>**true** if `item` is in `list`; otherwise **false**</returns>
/// <remarks>
/// ```scriban-html
/// {{ [1, 2, 3, 4] | array.contains 4 }}
Expand Down

0 comments on commit a05f9a8

Please sign in to comment.