aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/trace/trace.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/trace/trace.go')
-rw-r--r--src/runtime/trace/trace.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/runtime/trace/trace.go b/src/runtime/trace/trace.go
index 86c97e2a11..935d222f02 100644
--- a/src/runtime/trace/trace.go
+++ b/src/runtime/trace/trace.go
@@ -33,7 +33,7 @@
//
// import _ "net/http/pprof"
//
-// See the net/http/pprof package for more details about all of the
+// See the [net/http/pprof] package for more details about all of the
// debug endpoints installed by this import.
//
// # User annotation
@@ -44,11 +44,11 @@
// There are three types of user annotations: log messages, regions,
// and tasks.
//
-// Log emits a timestamped message to the execution trace along with
+// [Log] emits a timestamped message to the execution trace along with
// additional information such as the category of the message and
-// which goroutine called Log. The execution tracer provides UIs to filter
+// which goroutine called [Log]. The execution tracer provides UIs to filter
// and group goroutines using the log category and the message supplied
-// in Log.
+// in [Log].
//
// A region is for logging a time interval during a goroutine's execution.
// By definition, a region starts and ends in the same goroutine.
@@ -72,10 +72,10 @@
// operations such as an RPC request, an HTTP request, or an
// interesting local operation which may require multiple goroutines
// working together. Since tasks can involve multiple goroutines,
-// they are tracked via a context.Context object. NewTask creates
-// a new task and embeds it in the returned context.Context object.
+// they are tracked via a [context.Context] object. [NewTask] creates
+// a new task and embeds it in the returned [context.Context] object.
// Log messages and regions are attached to the task, if any, in the
-// Context passed to Log and WithRegion.
+// Context passed to [Log] and [WithRegion].
//
// For example, assume that we decided to froth milk, extract coffee,
// and mix milk and coffee in separate goroutines. With a task,