Skip to content

Commit 5af88ee

Browse files
committed
Add missing word in Box::from_unique docs
1 parent 5ce5b2f commit 5af88ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/boxed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ impl<T: ?Sized> Box<T> {
274274

275275
/// Constructs a `Box` from a `Unique<T>` pointer.
276276
///
277-
/// After calling this function, the memory is owned by a `Box` and `T` then
278-
/// be destroyed and released upon drop.
277+
/// After calling this function, the memory is owned by a `Box` and `T` can
278+
/// then be destroyed and released upon drop.
279279
///
280280
/// # Safety
281281
///

0 commit comments

Comments
 (0)