diff options
author | Rickard Green <[email protected]> | 2017-04-18 17:21:41 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-04-18 17:21:41 +0200 |
commit | 6124bfc9b61227a5e82f1d7273d0895e909aac6e (patch) | |
tree | b2a3c2c9d61919526a3fba06b505be079ef29467 /lib/stdlib/src/re.erl | |
parent | 9e104d8cb7bf78088ed7fb06e1824a299d31c0bc (diff) | |
parent | 56c2f180bec77bd17529d61cb65d1884550fcb17 (diff) | |
download | otp-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.erl | 7 |
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(), |