Skip to content

Commit

Permalink
private/model/api: Fix pagination helper method doc example
Browse files Browse the repository at this point in the history
Fixes the pagination helper method's doc example to refer to the package
of the paginator.

Fix aws#2374
  • Loading branch information
jasdel committed May 23, 2019
1 parent efa8bc2 commit cd6da4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/model/api/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}WithContext(` +
// // Example iterating over at most 3 pages of a {{ .ExportedName }} operation.
// pageNum := 0
// err := client.{{ .ExportedName }}Pages(params,
// func(page {{ .OutputRef.GoType }}, lastPage bool) bool {
// func(page {{ .OutputRef.Shape.GoTypeWithPkgName }}, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
Expand Down

0 comments on commit cd6da4c

Please sign in to comment.