Skip to content

Commit 88a5d56

Browse files
committed
Fixes nits
1 parent 683dab6 commit 88a5d56

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

translate/src/main/java/com/google/cloud/translate/samples/TranslateText.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static void translateText(String sourceText, PrintStream out) {
6161

6262
/**
6363
* Translate the source text from source to target language.
64-
* Make sure that your project is whitelisted.
64+
* Make sure that your project is whitelisted.
6565
*
6666
* @param sourceText source text to be translated
6767
* @param sourceLang source language of the text
@@ -83,7 +83,8 @@ public static void translateTextWithOptionsAndModel(
8383

8484
Translation translation = translate.translate(sourceText, srcLang, tgtLang, model);
8585
out.printf("Source Text:\n\tLang: %s, Text: %s\n", sourceLang, sourceText);
86-
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang, translation.getTranslatedText());
86+
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang,
87+
translation.getTranslatedText());
8788
}
8889

8990

@@ -107,7 +108,8 @@ public static void translateTextWithOptions(
107108

108109
Translation translation = translate.translate(sourceText, srcLang, tgtLang);
109110
out.printf("Source Text:\n\tLang: %s, Text: %s\n", sourceLang, sourceText);
110-
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang, translation.translatedText());
111+
out.printf("TranslatedText:\n\tLang: %s, Text: %s\n", targetLang,
112+
translation.translatedText());
111113
}
112114

113115
/**

0 commit comments

Comments
 (0)