projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fae4918
)
[fix] typo in part12.rs
author
adispring
<sunnyadi@163.com>
Mon, 29 Jul 2019 02:17:08 +0000
(10:17 +0800)
committer
adispring
<sunnyadi@163.com>
Mon, 29 Jul 2019 02:17:08 +0000
(10:17 +0800)
src/part12.rs
patch
|
blob
|
history
diff --git
a/src/part12.rs
b/src/part12.rs
index e7ccf9933ec4c2cedb51947f7444ac5815008cad..276ccaf5330f3cc8ef36ca1790a1b638f1758d86 100644
(file)
--- a/
src/part12.rs
+++ b/
src/part12.rs
@@
-12,7
+12,7
@@
use std::cell::{Cell, RefCell};
//@ ## `Rc`
//@ The solution is to find some way of cloning `Callbacks` without cloning the environments. This
//@ ## `Rc`
//@ The solution is to find some way of cloning `Callbacks` without cloning the environments. This
-//@ can be achieved with `Rc<T>`, a *reference-counted* pointer. This is
is
another example of a
+//@ can be achieved with `Rc<T>`, a *reference-counted* pointer. This is another example of a
//@ smart pointer. You can `clone` an `Rc` as often as you want, that doesn't affect the data it
//@ contains. It only creates more references to the same data. Once all the references are gone,
//@ the data is deleted.
//@ smart pointer. You can `clone` an `Rc` as often as you want, that doesn't affect the data it
//@ contains. It only creates more references to the same data. Once all the references are gone,
//@ the data is deleted.