Skip to content

Commit 4e8d64d

Browse files
authored
Update SAMPLE_FORMAT to use main. (GoogleCloudPlatform#2888)
1 parent a930d10 commit 4e8d64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SAMPLE_FORMAT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ most 4 parameters). In most cases, this is project specific information or the p
329329
file. For example, project specific information (such as `projectId`) or a `filePath` for an
330330
external file is acceptable, while a parameter for the type of a file or a specific action is not.
331331

332-
Any declared function parameters should include a no-arg, overloaded function with examples for how
332+
Any declared function parameters should include a no-arg, main function with examples for how
333333
the user can initialize the function parameters and call the entrypoint for the snippet. If the
334334
values for these variables need to be replaced by the user, attempt to make it explicitly clear that
335335
they are example values only.
@@ -338,7 +338,7 @@ Snippet functions should specify a return type of `void` and avoid returning any
338338
possible. Instead, show the user how to interact with a returned object programmatically by printing
339339
some example attributes to the console.
340340
```java
341-
public static void exampleSnippet() {
341+
public static void main(main(String[] args) {
342342
// TODO(developer): Replace these variables before running the sample.
343343
String projectId = "my-project-id";
344344
String filePath = "path/to/image.png";

0 commit comments

Comments
 (0)