about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2022-11-22 01:26:06 -0500
committerGitHub <noreply@github.com>2022-11-22 01:26:06 -0500
commit2f8dbe3797aec9a37d16d80db2f9285f74d27786 (patch)
treee5406cb7ac4798eb6551ce2fc94e1dd33dba453f
parent81ea6105e2e230705e9ac4b7af57968504fe4e2c (diff)
parent70cee5af4b503948f778a4cf8627bbcb62f5d327 (diff)
downloadrust-2f8dbe3797aec9a37d16d80db2f9285f74d27786.tar.gz
rust-2f8dbe3797aec9a37d16d80db2f9285f74d27786.zip
Rollup merge of #101655 - dns2utf8:box_docs, r=dtolnay
Make the Box one-liner more descriptive

I would like to avoid a definition that relies on itself.

r? `@GuillaumeGomez`
-rw-r--r--library/alloc/src/boxed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
index 97186589a4f..e5f6b0c0c65 100644
--- a/library/alloc/src/boxed.rs
+++ b/library/alloc/src/boxed.rs
@@ -187,7 +187,7 @@ pub use thin::ThinBox;
 
 mod thin;
 
-/// A pointer type for heap allocation.
+/// A pointer type that uniquely owns a heap allocation of type `T`.
 ///
 /// See the [module-level documentation](../../std/boxed/index.html) for more.
 #[lang = "owned_box"]