瀏覽代碼

!141 修正 StringUtils.format() 注释错误问题
Merge pull request !141 from KonBAI/fix_StringUtils_Note

疯狂的狮子Li 3 年之前
父節點
當前提交
d53dc28b83
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java

+ 1 - 1
ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java

@@ -86,7 +86,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
      * 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可<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 文本模板,被替换的部分用 {} 表示