aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/re.erl
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-04-18 17:21:41 +0200
committerGitHub <[email protected]>2017-04-18 17:21:41 +0200
commit6124bfc9b61227a5e82f1d7273d0895e909aac6e (patch)
treeb2a3c2c9d61919526a3fba06b505be079ef29467 /lib/stdlib/src/re.erl
parent9e104d8cb7bf78088ed7fb06e1824a299d31c0bc (diff)
parent56c2f180bec77bd17529d61cb65d1884550fcb17 (diff)
downloadotp-6124bfc9b61227a5e82f1d7273d0895e909aac6e.tar.gz
otp-6124bfc9b61227a5e82f1d7273d0895e909aac6e.tar.bz2
otp-6124bfc9b61227a5e82f1d7273d0895e909aac6e.zip
Merge pull request #1412 from manuel-rubio/manuel-rubio/add-re-version
Add re:version/0 OTP-14347
Diffstat (limited to 'lib/stdlib/src/re.erl')
-rw-r--r--lib/stdlib/src/re.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stdlib/src/re.erl b/lib/stdlib/src/re.erl
index 52d3c35608..28aab7b590 100644
--- a/lib/stdlib/src/re.erl
+++ b/lib/stdlib/src/re.erl
@@ -33,7 +33,12 @@
%%% BIFs
--export([compile/1, compile/2, run/2, run/3, inspect/2]).
+-export([version/0, compile/1, compile/2, run/2, run/3, inspect/2]).
+
+-spec version() -> binary().
+
+version() ->
+ erlang:nif_error(undef).
-spec compile(Regexp) -> {ok, MP} | {error, ErrSpec} when
Regexp :: iodata(),