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

feat(gengapic): add in-line snippet comment to example.go #1120

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

quartzmo
Copy link
Member

@quartzmo quartzmo commented Aug 31, 2022

See b/240118237 for requirements.

See also:

@quartzmo quartzmo requested review from a team as code owners August 31, 2022 21:05
@@ -64,6 +64,11 @@ func (g *generator) exampleInitClient(pkgName, servName string) {
p := g.printf

p("ctx := context.Background()")
p("// This snippet has been automatically generated and should be regarded as a code template only.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
p("// This snippet has been automatically generated and should be regarded as a code template only.")
p("// This code has been automatically generated and should be regarded as a template only.")

Make this more vague I think. This also will appear as godoc examples and the term snippet has no meaning there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately the exact wording is spec'd, I think it's better to stick with it.

@quartzmo quartzmo merged commit 88372c5 into googleapis:main Sep 1, 2022
@quartzmo quartzmo deleted the example-comment branch September 1, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants