Skip to content

Commit b70670f

Browse files
cuishuanggopherbot
authored andcommitted
all: make function and struct comments match the names
Change-Id: I1277ea35dd14f6023534636335d13bf3c6859c67 Reviewed-on: https://go-review.googlesource.com/c/build/+/639556 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent bf50695 commit b70670f

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

buildlet/buildlet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ type VMOpts struct {
5353
// after the instance operation succeeds.
5454
OnInstanceCreated func()
5555

56-
// OnInstanceCreated optionally specifies a hook to run synchronously
56+
// OnGotInstanceInfo optionally specifies a hook to run synchronously
5757
// after the computeService.Instances.Get call.
5858
// Only valid for GCE resources.
5959
OnGotInstanceInfo func(*compute.Instance)
6060

61-
// OnInstanceCreated optionally specifies a hook to run synchronously
61+
// OnGotEC2InstanceInfo optionally specifies a hook to run synchronously
6262
// after the EC2 instance information is retrieved.
6363
// Only valid for EC2 resources.
6464
OnGotEC2InstanceInfo func(*cloud.Instance)

internal/coordinator/pool/ec2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type EC2Buildlet struct {
7575
// hosts provides the host configuration for all hosts. It is passed in to facilitate
7676
// testing.
7777
hosts map[string]*dashboard.HostConfig
78-
// isRemoteBuildletFunc informs the caller is a VM instance is being used as a remote
78+
// isRemoteBuildlet informs the caller is a VM instance is being used as a remote
7979
// buildlet.
8080
//
8181
// TODO(golang.org/issues/38337) remove once we find a way to pass in remote buildlet

internal/coordinator/pool/reverse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ type reverseBuildlet struct {
475475
// It is the key into the dashboard.Hosts map.
476476
hostType string
477477

478-
// inUseAs signifies that the buildlet is in use.
478+
// inUse signifies that the buildlet is in use.
479479
// inUseTime is when it entered that state.
480480
// inHealthCheck is whether it's inUse due to a health check.
481481
// All three are guarded by the mutex on ReverseBuildletPool.

internal/iapclient/iapclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func cachedToken() (*oauth2.Token, error) {
157157
return &refreshToken, nil
158158
}
159159

160-
// TokenSource returns a TokenSource that can be used to access Go's
160+
// TokenSourceForceLogin returns a TokenSource that can be used to access Go's
161161
// IAP-protected sites. It will delete any existing authentication token
162162
// credentials and prompt for login.
163163
func TokenSourceForceLogin(ctx context.Context) (oauth2.TokenSource, error) {

kubernetes/api/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ type NodeStatus struct {
17391739
// Queried from cloud provider, if available.
17401740
// More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses
17411741
Addresses []NodeAddress `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
1742-
// NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
1742+
// NodeInfo is a set of ids/uuids to uniquely identify the node.
17431743
// More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-info
17441744
NodeInfo NodeSystemInfo `json:"nodeInfo,omitempty"`
17451745
}

kubernetes/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
type Client struct {
2828
httpClient *http.Client
2929

30-
// endPointURL is the Kubernetes master URL ending in
30+
// endpointURL is the Kubernetes master URL ending in
3131
// "/api/v1".
3232
endpointURL string
3333

maintner/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ type GitHubComment struct {
568568
Body string
569569
}
570570

571-
// GitHubDismissedReview is the contents of a dismissed review event. For more
571+
// GitHubDismissedReviewEvent is the contents of a dismissed review event. For more
572572
// details, see https://developer.github.com/v3/issues/events/.
573573
type GitHubDismissedReviewEvent struct {
574574
ReviewID int64

0 commit comments

Comments
 (0)