Skip to content

Commit

Permalink
revise a bit (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
kynehc authored Dec 12, 2024
1 parent 4b4f770 commit 0cd7700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subtyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ error[E0308]: mismatched types
| expected `&'static str`, found struct `&'world str`
```

这是相当不幸的。在这种情况下,我们希望接受的类型的生命周期至少要和 `'world` 一样长
这是相当不幸的。在这种情况下,我们希望接受生命周期至少与 `'world` 一样长的任何类型
让我们尝试使用生命周期进行子类型化。

## 子类型化
Expand Down

0 comments on commit 0cd7700

Please sign in to comment.