Skip to content

Commit f1d1a69

Browse files
cuishuanggopherbot
authored andcommitted
all: make function comment match function name
Change-Id: Id0fa10bcae7159258079b17cc75e53760714674a Reviewed-on: https://go-review.googlesource.com/c/tools/+/711035 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com> Auto-Submit: Alan Donovan <adonovan@google.com>
1 parent d2096d1 commit f1d1a69

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

go/callgraph/vta/propagation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ func scc(g *vtaGraph) (sccs [][]idx, idxToSccID []int) {
7777
return sccs, idxToSccID
7878
}
7979

80-
// LastIndex returns the index of the last occurrence of v in s, or -1 if v is
80+
// slicesLastIndex returns the index of the last occurrence of v in s, or -1 if v is
8181
// not present in s.
8282
//
83-
// LastIndex iterates backwards through the elements of s, stopping when the ==
83+
// slicesLastIndex iterates backwards through the elements of s, stopping when the ==
8484
// operator determines an element is equal to v.
8585
func slicesLastIndex[S ~[]E, E comparable](s S, v E) int {
8686
// TODO: move to / dedup with slices.LastIndex

gopls/internal/cache/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (s *Snapshot) SequenceID() uint64 {
255255
return s.sequenceID
256256
}
257257

258-
// SnapshotLabels returns a new slice of labels that should be used for events
258+
// Labels returns a new slice of labels that should be used for events
259259
// related to a snapshot.
260260
func (s *Snapshot) Labels() []label.Label {
261261
return []label.Label{

internal/mcp/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (c *Client) RemoveRoots(uris ...string) {
167167
func() bool { return c.roots.remove(uris...) })
168168
}
169169

170-
// changeAndNotifyClient is called when a feature is added or removed.
170+
// changeAndNotify is called when a feature is added or removed.
171171
// It calls change, which should do the work and report whether a change actually occurred.
172172
// If there was a change, it notifies a snapshot of the sessions.
173173
func (c *Client) changeAndNotify(notification string, params Params, change func() bool) {

0 commit comments

Comments
 (0)