Skip to content

Commit 2266505

Browse files
committed
small javadoc changes
1 parent 04d0586 commit 2266505

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

text-io/src/main/java/org/beryx/textio/TextTerminal.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,15 @@ default void println(String message) {
178178
}
179179

180180
/**
181-
* Prints a decorated line separator with a character of choice determined by the String parameter.
182-
* the length parameter dictates how many characters the decorator should be.
183-
* the decorator does not need to be a single character ie : '*' ... it could also be ie '+++' if desired.
181+
* Prints a decorated line separator.
182+
* @param decorator the string used to decorate the line.
183+
* It can consist of a single character (e.g. "*") or a sequence of characters (e.g. "+--").
184+
* @param length the number of times the decorator string should be repeated.
184185
*/
185-
default void separateLineWithDecorator(String s, int length) {
186+
default void separateLineWithDecorator(String decorator, int length) {
186187
String separator = "";
187188
for (int i = 0; i < length; i++){
188-
separator = separator + s;
189+
separator = separator + decorator;
189190
}
190191
print(separator);
191192
println();

0 commit comments

Comments
 (0)