item14 示例代码错误,修改为和英文原版相同

This commit is contained in:
shibor zhang 2019-08-27 16:49:29 +08:00
parent 326c97043f
commit 18291cc8fc

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
}