Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
sverker committed Oct 2, 2024
2 parents 6eb6efc + 7c44844 commit f587482
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions lib/stdlib/src/ets.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1446,13 +1446,10 @@ select(_) ->

-doc """
Matches the objects in table `Table` using a
[match specification](`m:ets#match_spec`). If the match specification returns
`true` for an object, that object considered a match and is counted. For any
other result from the match specification the object is not considered a match
and is therefore not counted.
This function can be described as a `select_delete/2` function that does not
delete any elements, but only counts them.
[match specification](`m:ets#match_spec`). If and only if the match specification
returns `true` for an object, that object is considered a match and is counted.
For any other result from the match specification the object is not considered a
match and is therefore not counted.
The function returns the number of objects matched.
""".
Expand All @@ -1466,10 +1463,10 @@ select_count(_, _) ->

-doc """
Matches the objects in table `Table` using a
[match specification](`m:ets#match_spec`). If the match specification returns
`true` for an object, that object is removed from the table. For any other
result from the match specification the object is retained. This is a more
general call than the `match_delete/2` call.
[match specification](`m:ets#match_spec`). If and only if the match
specification returns `true` for an object, that object is removed from the
table. For any other result from the match specification the object is
retained. This is a more general function than `match_delete/2`.
The function returns the number of objects deleted from the table.
Expand Down

0 comments on commit f587482

Please sign in to comment.