Skip to content

Commit

Permalink
Update docstring to match other partial operators
Browse files Browse the repository at this point in the history
  • Loading branch information
bugarela committed Oct 4, 2024
1 parent aec3781 commit f5ad90a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pages/docs/builtin.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ assert(Set(1).allListsUpTo(2) == Set([], [1], [1, 1]))
Signature: `pure def getOnlyElement: (Set[a]) => a`

`s.getOnlyElement()` is, deterministically, the only element of `s`.
If the size of `s` is not 1, it results in a error.
If the size of `s` is not 1, this operator has undefined behavior.

### Examples

Expand Down
2 changes: 1 addition & 1 deletion quint/src/builtin.qnt
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ module builtin {
pure def allListsUpTo(s: Set[a], max_length: int): Set[List[a]]

/// `s.getOnlyElement()` is, deterministically, the only element of `s`.
/// If the size of `s` is not 1, it results in a error.
/// If the size of `s` is not 1, this operator has undefined behavior.
///
/// ### Examples
///
Expand Down

0 comments on commit f5ad90a

Please sign in to comment.