Skip to content

Commit f26b1bf

Browse files
authored
Update doc in statsviz.go
1 parent 820bb55 commit f26b1bf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

statsviz.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Package statsviz allows visualizing Go runtime metrics data in real time in
22
// your browser.
33
//
4-
// Register a Statsviz HTTP handlers with your server's [http.ServeMux]
4+
// Register Statsviz HTTP handlers with your server's [http.ServeMux]
55
// (preferred method):
66
//
77
// mux := http.NewServeMux()
88
// statsviz.Register(mux)
99
//
10-
// Alternatively, you can register with [http.DefaultServeMux]:
10+
// Alternatively, you can register with [http.DefaultServeMux]
11+
// though you shouldn't do that in production:
1112
//
1213
// ss := statsviz.NewServer()
1314
// ss.Register(http.DefaultServeMux)
@@ -27,7 +28,7 @@
2728
//
2829
// # Advanced usage:
2930
//
30-
// If you want more control over Statsviz HTTP handlers, examples are:
31+
// If you want more control over Statsviz HTTP handlers, for examples if:
3132
// - you're using some HTTP framework
3233
// - you want to place Statsviz handler behind some middleware
3334
//

0 commit comments

Comments
 (0)