File 9362-erts-Polish-match_spec-docs-to-refer-to-the-new-trac.patch of Package erlang
From 39109194aa7eac8b533faff7775e565e55916737 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Wed, 4 Mar 2026 16:44:40 +0100
Subject: [PATCH 2/2] erts: Polish match_spec docs to refer to the new trace
functions
---
erts/doc/guides/match_spec.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/erts/doc/src/match_spec.xml b/erts/doc/src/match_spec.xml
index eb8e70c9b4..4e0d169cc4 100644
--- a/erts/doc/src/match_spec.xml
+++ b/erts/doc/src/match_spec.xml
@@ -35,7 +35,7 @@
<p>A "match specification" (<c>match_spec</c>) is an Erlang term describing a
small "program" that tries to match something. It can be used
to either control tracing with
- <seemfa marker="erlang#trace_pattern/3">erlang:trace_pattern/3</seemfa>
+ <seemfa marker="trace#function/4">trace:function/4</seemfa>
or to search for objects in an ETS table with for example
<seemfa marker="stdlib:ets#select/2">ets:select/2</seemfa>.
The match specification in many ways works like a small function in Erlang,
@@ -518,7 +518,7 @@
<c><![CDATA[MatchBody]]></c> part for a traced function.</p>
<p>This mode can also be activated with flag
<c><![CDATA[silent]]></c> to
- <c><![CDATA[erlang:trace/3]]></c>.</p>
+ <c><![CDATA[trace:process/4]]></c>.</p>
<p>If the argument is <c><![CDATA[false]]></c>, the call trace
message mode for the current process is set to normal
(non-silent) for this call and all later calls.</p>
--
2.51.0