Skip to content

Commit ae4e92c

Browse files
authored
fix: update styleguide to print out responses (#168)
1 parent ae04474 commit ae4e92c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/en/_index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ that it works.
279279
// This is an example snippet for showing best practices.
280280
public static void exampleSnippet(String projectId, StringfilePath) {
281281
// Snippet content ...
282+
System.out.printf("Response: %s%n", response);
282283
}
283284
{{< /tab >}}
284285
{{< tab header="Go" >}}
@@ -295,11 +296,13 @@ func exampleSnippet(w io.Writer, projectID, filePath string) error {
295296
# This is an example snippet for showing best practices.
296297
def example_snippet(project_id: str, file_path: str) -> None:
297298
# Snippet content ...
299+
response = client.example_action(example_action_request)
300+
print(f"Got the following response {response}")
298301
{{< /tab >}}
299302
{{< tab header="Node.js" >}}
300303
const exampleSnippet = function(projectId, filePath) {
301304
// Snippet content ...
302-
// (This snippet should not `return` anything.)
305+
console.info(`Got the following response ${response}`);
303306
}
304307
{{< /tab >}}
305308
{{< tab header="Ruby" >}}

0 commit comments

Comments
 (0)