aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc
diff options
context:
space:
mode:
author alemi <me@alemi.dev>2023-03-15 09:46:57 +0100
committer alemi <me@alemi.dev>2023-03-15 09:46:57 +0100
commitc22580be320fe9c72cbf7605ca7953330eab6502 (patch)
tree95eaffa15b2ca049fc22e20258261e8b83d60af5 /src/main/java/ftbsc
parentc942c352639fc53b00741345f44ebb18ce0a4cc8 (diff)
feat: TextBuilder accepts varargs
Diffstat (limited to 'src/main/java/ftbsc')
-rw-r--r--src/main/java/ftbsc/bscv/tools/Text.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/ftbsc/bscv/tools/Text.java b/src/main/java/ftbsc/bscv/tools/Text.java
index 6346e29..316a29d 100644
--- a/src/main/java/ftbsc/bscv/tools/Text.java
+++ b/src/main/java/ftbsc/bscv/tools/Text.java
@@ -33,8 +33,8 @@ public final class Text implements ICommons {
return new Text();
}
- public Text txt(String txt) {
- this.text = txt;
+ public Text txt(String txt, Object... arg) {
+ this.text = String.format(txt, arg);
return this;
}