Skip to content

Commit bacd4ba

Browse files
jbagopherbot
authored andcommitted
go/analysis/passes/gofix: add an example to doc
Change-Id: I76febc19b0870d706675d2bc25bab1ad33ce197e Reviewed-on: https://go-review.googlesource.com/c/tools/+/666055 Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Commit-Queue: Alan Donovan <[email protected]>
1 parent 48422ad commit bacd4ba

File tree

1 file changed

+2
-1
lines changed
  • go/analysis/passes/gofix

1 file changed

+2
-1
lines changed

go/analysis/passes/gofix/doc.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ named constant.
2323
const (
2424
a = 1 // error
2525
b = iota // error
26-
c = math.Pi // OK
26+
c = a // OK
27+
d = math.Pi // OK
2728
)
2829
2930
- A type definition can be marked for inlining only if it is an alias.

0 commit comments

Comments
 (0)