Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make function comment match function name #28330

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go/teams/nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func newNonce24() (*nonce24, error) {
return &nonce24{prefix: prefix}, nil
}

// newNonce24 creates a nonce with a random 20 byte prefix and
// newNonce24SkipZero creates a nonce with a random 20 byte prefix and
// a counter starting at 1.
func newNonce24SkipZero() (*nonce24, error) {
n, err := newNonce24()
Expand Down
2 changes: 1 addition & 1 deletion go/teams/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func ResolveImplicitTeamDisplayName(ctx context.Context, g *libkb.GlobalContext,
return res, err
}

// preventTeamCreationOnError checks if an error coming from resolver should
// shouldPreventTeamCreation checks if an error coming from resolver should
// prevent us from creating a team. We don't want a team where we don't know if
// SBS user is resolvable but we just were unable to get the answer.
func shouldPreventTeamCreation(err error) bool {
Expand Down
2 changes: 1 addition & 1 deletion go/updater/watchdog/watchdog.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (w *Watchdog) heartbeatToLog(delay time.Duration) {
}
}

// watchProgram will monitor a program and restart it if it exits.
// startProgram will monitor a program and restart it if it exits.
// This method will run forever.
func (w *Watchdog) startProgram(idx int) {
program := &(w.Programs[idx])
Expand Down