Skip to content

Commit 852eadc

Browse files
committed
boxed: fix typo in doc
1 parent dcc6ce2 commit 852eadc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/boxed.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ impl<T : ?Sized> Box<T> {
105105
/// After this function call, pointer is owned by resulting box.
106106
/// In particular, it means that `Box` destructor calls destructor
107107
/// of `T` and releases memory. Since the way `Box` allocates and
108-
/// releases memory is unspecified, so the only valid pointer to
109-
/// pass to this function is the one taken from another `Box` with
110-
/// `box::into_raw` function.
108+
/// releases memory is unspecified, the only valid pointer to pass
109+
/// to this function is the one taken from another `Box` with
110+
/// `boxed::into_raw` function.
111111
///
112112
/// Function is unsafe, because improper use of this function may
113113
/// lead to memory problems like double-free, for example if the

0 commit comments

Comments
 (0)