Skip to content

Commit

Permalink
Merge pull request #1062 from varyuan/v5-dev
Browse files Browse the repository at this point in the history
方法说明错误,"字符"应该改为"字母"
  • Loading branch information
looly authored Sep 4, 2020
2 parents 8c80935 + 85142b4 commit 974c3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hutool-core/src/main/java/cn/hutool/core/util/CharUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static boolean isHexChar(char c) {
}

/**
* 是否为字符或数字,包括A~Z、a~z、0~9
* 是否为字母或数字,包括A~Z、a~z、0~9
*
* <pre>
* CharUtil.isLetterOrNumber('a') = true
Expand All @@ -199,7 +199,7 @@ public static boolean isHexChar(char c) {
* </pre>
*
* @param ch 被检查的字符
* @return true表示为字符或数字,包括A~Z、a~z、0~9
* @return true表示为字母或数字,包括A~Z、a~z、0~9
*/
public static boolean isLetterOrNumber(final char ch) {
return isLetter(ch) || isNumber(ch);
Expand Down

0 comments on commit 974c3b4

Please sign in to comment.