prysm-pulse/tools/analyzers/ineffassign/testdata/ctx_assignment.go
Victor Farazdagi 386b69f473
Fix comments (#8802)
* fix incorrect exported name in comments

* add comments to exported methods
2021-04-23 12:06:05 +00:00

20 lines
362 B
Go

package testdata
import (
"context"
"fmt"
)
// This returns the head state.
// It does a full copy on head state for immutability.
func headState(ctx context.Context) {
ctx, span := StartSpan(ctx, "blockChain.headState")
fmt.Print(span)
return
}
// StartSpan --
func StartSpan(ctx context.Context, name string) (context.Context, int) {
return ctx, 42
}