Merge pull request #24 from shibor/master

item14 示例代码错误,修改为和英文原版相同
This commit is contained in:
Joe 2019-08-27 06:50:32 -05:00 committed by GitHub
commit 32273113c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ public interface Comparable<T> {
public final class CaseInsensitiveString
implements Comparable<CaseInsensitiveString> {
public int compareTo(CaseInsensitiveString cis) {
return String.CASE_INSENSITIVE_[ORDER.compare(s](http://ORDER.compare(s), cis.s);
return String.CASE_INSENSITIVE_ORDER.compare(s, cis.s);
}
... // Remainder omitted
}