1 parent 4b2c5e9 commit 06cb10dCopy full SHA for 06cb10d
md/ch13.md
@@ -479,7 +479,7 @@ Rust不会隐式为结构体类型实现`Default`,但如果一个结构体的
479
`Borrow`的定义和`AsRef`的定义几乎完全相同,只有名字变了:
480
```Rust
481
trait Borrow<Borrowed: ?Sized> {
482
- fn borrow(&self) -> &Borrow;
+ fn borrow(&self) -> &Borrowed;
483
}
484
```
485
src/ch13.tex
@@ -503,7 +503,7 @@ \section{\texttt{Borrow}与\texttt{BorrowMut}}\label{borrow}
503
\texttt{Borrow}的定义和\texttt{AsRef}的定义几乎完全相同,只有名字变了:
504
\begin{minted}{Rust}
505
506
507
508
\end{minted}
509
0 commit comments