fix comment

This commit is contained in:
Looly
2022-05-10 18:05:43 +08:00
parent 6b58b00974
commit d7b3be9183

View File

@@ -2706,7 +2706,7 @@ public class CharSequenceUtil {
* 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可<br>
* 例:<br>
* 通常使用format("this is {} for {}", "a", "b") =》 this is a for b<br>
* 转义{} format("this is \\{} for {}", "a", "b") =》 this is \{} for a<br>
* 转义{} format("this is \\{} for {}", "a", "b") =》 this is {} for a<br>
* 转义\ format("this is \\\\{} for {}", "a", "b") =》 this is \a for b<br>
*
* @param template 文本模板,被替换的部分用 {} 表示如果模板为null返回"null"