diff options
author | Sverker Eriksson <sverker@erlang.org> | 2023-03-08 11:05:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 11:05:06 +0100 |
commit | e91cd2d325a6ccc621fe849b72b8b4f5d6bb2348 (patch) | |
tree | 5c6c8b0ee1d891dce3e0a4b9e2fc382589de71f3 /lib/stdlib | |
parent | e0331fd98a9c92c23e4e59eb6d1fa9544416e6e7 (diff) | |
parent | 80d08901c70dabaea7856a72c88bfc2ac894de64 (diff) | |
download | erlang-e91cd2d325a6ccc621fe849b72b8b4f5d6bb2348.tar.gz |
Merge PR-6987 from sverker/taglist-since OTP-18501
Add "since" versions to XML taglist
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/doc/src/ets.xml | 6 | ||||
-rw-r--r-- | lib/stdlib/doc/src/rand.xml | 10 | ||||
-rw-r--r-- | lib/stdlib/src/shell_docs.erl | 10 |
3 files changed, 16 insertions, 10 deletions
diff --git a/lib/stdlib/doc/src/ets.xml b/lib/stdlib/doc/src/ets.xml index ea0fb6dcf1..2aa05a599a 100644 --- a/lib/stdlib/doc/src/ets.xml +++ b/lib/stdlib/doc/src/ets.xml @@ -1387,7 +1387,7 @@ ets:select(Table, MatchSpec),</code> </note> <marker id="new_2_read_concurrency"></marker> </item> - <tag><c>{read_concurrency,boolean()}</c></tag> + <tag since="OTP R14B"><c>{read_concurrency,boolean()}</c></tag> <item> <p>Performance tuning. Defaults to <c>false</c>. When set to <c>true</c>, the table is optimized for concurrent read @@ -1412,7 +1412,7 @@ ets:select(Table, MatchSpec),</code> read bursts and large concurrent write bursts are common.</p> <marker id="new_2_decentralized_counters"></marker> </item> - <tag><c>{decentralized_counters,boolean()}</c></tag> + <tag since="OTP 23.0"><c>{decentralized_counters,boolean()}</c></tag> <item> <p> Performance tuning. Defaults to <c>true</c> for all @@ -1447,7 +1447,7 @@ ets:select(Table, MatchSpec),</code> </p> <marker id="new_2_compressed"></marker> </item> - <tag><c>compressed</c></tag> + <tag since="OTP R14B01"><c>compressed</c></tag> <item> <p>If this option is present, the table data is stored in a more compact format to consume less memory. However, it will make diff --git a/lib/stdlib/doc/src/rand.xml b/lib/stdlib/doc/src/rand.xml index 2e84fb94ae..fb8075cb32 100644 --- a/lib/stdlib/doc/src/rand.xml +++ b/lib/stdlib/doc/src/rand.xml @@ -78,7 +78,7 @@ </p> <taglist> - <tag><c>exsss</c></tag> + <tag since="OTP 22.0"><c>exsss</c></tag> <item> <p>Xorshift116**, 58 bits precision and period of 2^116-1</p> <p>Jump function: equivalent to 2^64 calls</p> @@ -104,7 +104,7 @@ thanks to its statistical qualities. </p> </item> - <tag><c>exro928ss</c></tag> + <tag since="OTP 22.0"><c>exro928ss</c></tag> <item> <p>Xoroshiro928**, 58 bits precision and a period of 2^928-1</p> <p>Jump function: equivalent to 2^512 calls</p> @@ -127,17 +127,17 @@ the 58 bit adaption. </p> </item> - <tag><c>exrop</c></tag> + <tag since="OTP 20.0"><c>exrop</c></tag> <item> <p>Xoroshiro116+, 58 bits precision and period of 2^116-1</p> <p>Jump function: equivalent to 2^64 calls</p> </item> - <tag><c>exs1024s</c></tag> + <tag since="OTP 20.0"><c>exs1024s</c></tag> <item> <p>Xorshift1024*, 64 bits precision and a period of 2^1024-1</p> <p>Jump function: equivalent to 2^512 calls</p> </item> - <tag><c>exsp</c></tag> + <tag since="OTP 20.0"><c>exsp</c></tag> <item> <p>Xorshift116+, 58 bits precision and period of 2^116-1</p> <p>Jump function: equivalent to 2^64 calls</p> diff --git a/lib/stdlib/src/shell_docs.erl b/lib/stdlib/src/shell_docs.erl index 51e1272eb3..603946ec98 100644 --- a/lib/stdlib/src/shell_docs.erl +++ b/lib/stdlib/src/shell_docs.erl @@ -872,10 +872,16 @@ render_element({li,[],Content},[l | _] = State, Pos, Ind,D) -> render_element({dl,_,Content},State,Pos,Ind,D) -> render_docs(Content, [dl|State], Pos, Ind,D); -render_element({dt,_,Content},[dl | _] = State,Pos,Ind,D) -> +render_element({dt,Attr,Content},[dl | _] = State,Pos,Ind,D) -> + Since = case Attr of + [{since, Vsn}] -> + [" (since ",unicode:characters_to_list(Vsn),$)]; + [] -> + [] + end, Underline = sansi(underline), {Docs, _NewPos} = render_docs(Content, [li | State], Pos, Ind, D), - {[Underline,Docs,ransi(underline),":","\n"], 0}; + {[Underline,Docs,ransi(underline),$:,Since,$\n], 0}; render_element({dd,_,Content},[dl | _] = State,Pos,Ind,D) -> trimnlnl(render_docs(Content, [li | State], Pos, Ind + 2, D)); |