Skip to content

Commit e527707

Browse files
committed
fix: mnesia select/3,4 doc update
1 parent 0906e42 commit e527707

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/mnesia/src/mnesia.erl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,8 +2291,8 @@ Result = '$1',
22912291
mnesia:select(Tab,[{MatchHead, [Guard], [Result]}]),
22922292
```
22932293
""".
2294-
-spec select(Tab, Spec, LockKind) -> [Match] when
2295-
Tab::table(), Spec::ets:match_spec(),
2294+
-spec select(Tab, MatchSpec, LockKind) -> [Match] when
2295+
Tab::table(), MatchSpec::ets:match_spec(),
22962296
Match::term(),LockKind::lock_kind().
22972297
select(Tab, Pat, LockKind)
22982298
when is_atom(Tab), Tab /= schema, is_list(Pat) ->
@@ -2369,9 +2369,9 @@ operations are done on that table in the same transaction. That is, do not use
23692369
`NObjects` is a recommendation only and the result can contain anything from an
23702370
empty list to all available results.
23712371
""".
2372-
-spec select(Tab, Spec, N, LockKind) -> {[Match], Cont} | '$end_of_table' when
2373-
Tab::table(), Spec::ets:match_spec(),
2374-
Match::term(), N::non_neg_integer(),
2372+
-spec select(Tab, MatchSpec, NObjects, LockKind) -> {[Match], Cont} | '$end_of_table' when
2373+
Tab::table(), MatchSpec::ets:match_spec(),
2374+
Match::term(), NObjects::non_neg_integer(),
23752375
LockKind::lock_kind(),
23762376
Cont::select_continuation().
23772377
select(Tab, Pat, NObjects, LockKind)

0 commit comments

Comments
 (0)