You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
Modernize (#7089)
Use https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize to update code to new style. --------- Co-authored-by: Flc゛ <four_leaf_clover@foxmail.com> Co-authored-by: Damien Mathieu <42@dmathieu.com>
This commit is contained in:
committed by
GitHub
parent
7bcbb6a49a
commit
5e1c62a2d5
@@ -166,7 +166,7 @@ func ExampleMeter_gauge() {
|
||||
go func() {
|
||||
defer close(fanSpeedSubscription)
|
||||
|
||||
for idx := 0; idx < 5; idx++ {
|
||||
for range 5 {
|
||||
// Synchronous gauges are used when the measurement cycle is
|
||||
// synchronous to an external change.
|
||||
// Simulate that external cycle here.
|
||||
|
||||
Reference in New Issue
Block a user