Skip to content

Commit 55fa72b

Browse files
authored
Update 04-基础Trait.md
提交的PR已经导致rustlang做了修改
1 parent fc75f85 commit 55fa72b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

04-基础Trait.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ mod impls {
426426
//这个表达主要是考虑到浮点, 注意这里是用了impl PartialOrd<&B> for &A
427427
//从而self <= other导致对 (&f32).le()的调用
428428
//为什么不直接使用(*self <= *other, *self >= *other)呢
429-
//提交了PR
429+
//提交了PR,最新的代码库已经修改了
430430
match (self <= other, self >= other) {
431431
(false, false) => None,
432432
(false, true) => Some(Greater),
@@ -974,4 +974,4 @@ where
974974
}
975975
}
976976
```
977-
以上, `self as &[T]` 即把[T;N]转化为了切片[T], 所以数组的Index就是[T]的Index实现
977+
以上, `self as &[T]` 即把[T;N]转化为了切片[T], 所以数组的Index就是[T]的Index实现

0 commit comments

Comments
 (0)