Skip to content

Commit 06cb10d

Browse files
authored
fix: ch13 (MeouSker77#35)
1 parent 4b2c5e9 commit 06cb10d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎md/ch13.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ Rust不会隐式为结构体类型实现`Default`,但如果一个结构体的
479479
`Borrow`的定义和`AsRef`的定义几乎完全相同,只有名字变了:
480480
```Rust
481481
trait Borrow<Borrowed: ?Sized> {
482-
fn borrow(&self) -> &Borrow;
482+
fn borrow(&self) -> &Borrowed;
483483
}
484484
```
485485

‎src/ch13.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ \section{\texttt{Borrow}与\texttt{BorrowMut}}\label{borrow}
503503
\texttt{Borrow}的定义和\texttt{AsRef}的定义几乎完全相同,只有名字变了:
504504
\begin{minted}{Rust}
505505
trait Borrow<Borrowed: ?Sized> {
506-
fn borrow(&self) -> &Borrow;
506+
fn borrow(&self) -> &Borrowed;
507507
}
508508
\end{minted}
509509

0 commit comments

Comments
 (0)