From 25648cad32b782cff5b513cb1e1a72d2f9f4ada7 Mon Sep 17 00:00:00 2001
From: Guilherme Andrade
Date: Thu, 23 Mar 2017 00:09:58 +0000
Subject: ets: Polish select_replace/2 documentation
---
lib/stdlib/doc/src/ets.xml | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
(limited to 'lib/stdlib')
diff --git a/lib/stdlib/doc/src/ets.xml b/lib/stdlib/doc/src/ets.xml
index 29d22ffae5..d1ec176f81 100644
--- a/lib/stdlib/doc/src/ets.xml
+++ b/lib/stdlib/doc/src/ets.xml
@@ -1494,19 +1494,17 @@ is_integer(X), is_integer(Y), X + Y < 4711]]>
Match and replace objects atomically in an ETS table
-
- For the moment, due to performance and semantic constraints,
- tables of type bag are not yet supported.
-
Matches the objects in the table Tab using a
- match specification. If the
+ match specification. If
an object is matched, the existing object is replaced with
- the match specificatoin result.
+ the match specification result, which must retain
+ the original key or the operation will fail with badarg.
+ For the moment, due to performance and semantic constraints,
+ tables of type bag are not yet supported.
The function returns the total number of replaced objects.
- If there's a risk a match specification might return
- a tuple with a different key, the whole operation will fail
- with badarg.
+ The match/replacement operation atomicity scope is limited
+ to each individual object.
--
cgit v1.2.3