Skip to content

Commit 5518f3d

Browse files
jerjouanguillanneuf
authored andcommitted
samples: deprecated methods -> undeprecated versions. (#428)
1 parent c1c3c83 commit 5518f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translate/snippets/src/main/java/com/example/translate/QuickstartSample.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static void main(String... args) throws Exception {
4040

4141

4242
System.out.printf("Text: %s%n", text);
43-
System.out.printf("Translation: %s%n", translation.translatedText());
43+
System.out.printf("Translation: %s%n", translation.getTranslatedText());
4444
}
4545
}
4646
// [END translate_quickstart]

0 commit comments

Comments
 (0)