Skip to content

Commit

Permalink
fix: ch13 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
bekyiu authored Jul 3, 2024
1 parent 4b2c5e9 commit 06cb10d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion md/ch13.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Rust不会隐式为结构体类型实现`Default`,但如果一个结构体的
`Borrow`的定义和`AsRef`的定义几乎完全相同,只有名字变了:
```Rust
trait Borrow<Borrowed: ?Sized> {
fn borrow(&self) -> &Borrow;
fn borrow(&self) -> &Borrowed;
}
```

Expand Down
2 changes: 1 addition & 1 deletion src/ch13.tex
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ \section{\texttt{Borrow}与\texttt{BorrowMut}}\label{borrow}
\texttt{Borrow}的定义和\texttt{AsRef}的定义几乎完全相同,只有名字变了:
\begin{minted}{Rust}
trait Borrow<Borrowed: ?Sized> {
fn borrow(&self) -> &Borrow;
fn borrow(&self) -> &Borrowed;
}
\end{minted}

Expand Down

0 comments on commit 06cb10d

Please sign in to comment.