Skip to content

Commit

Permalink
fix: make iterator link clickable (#1576)
Browse files Browse the repository at this point in the history
Internal Bug: 372879282
  • Loading branch information
codyoss authored Nov 4, 2024
1 parent 7e64160 commit 6249624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/gengapic/paging.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func (g *generator) pagingIter(pt *iterType) {
p("}")
p("")

p("// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.")
p("// PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.")
p("func (it *%s) PageInfo() *iterator.PageInfo {", pt.iterTypeName)
p(" return it.pageInfo")
p("}")
Expand Down
2 changes: 1 addition & 1 deletion internal/gengapic/testdata/gen_iterators.want
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type FooIterator struct {
InternalFetch func(pageSize int, pageToken string) (results []*examplepb.Foo, nextPageToken string, err error)
}

// PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
// PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
func (it *FooIterator) PageInfo() *iterator.PageInfo {
return it.pageInfo
}
Expand Down

0 comments on commit 6249624

Please sign in to comment.