about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTaylor Cramer <cramertj@google.com>2018-01-16 08:51:24 -0800
committerTaylor Cramer <cramertj@google.com>2018-01-16 08:51:24 -0800
commitf25f4687093c1c7e69a06fa7fa6cc3cc6f9aa9d1 (patch)
tree189ab165ca59a5051af91225a2e7897d8f5e174f
parent25574e58b68dae94f7d9931b5e648a327a94ecd1 (diff)
downloadrust-f25f4687093c1c7e69a06fa7fa6cc3cc6f9aa9d1.tar.gz
rust-f25f4687093c1c7e69a06fa7fa6cc3cc6f9aa9d1.zip
Adjust wording of Placer trait safety requirements
-rw-r--r--src/libcore/ops/place.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ops/place.rs b/src/libcore/ops/place.rs
index 4c8c6e63fc6..b3dcf4e7ee9 100644
--- a/src/libcore/ops/place.rs
+++ b/src/libcore/ops/place.rs
@@ -32,8 +32,8 @@ pub unsafe trait Place<Data: ?Sized> {
     /// Note that the data at this address is generally uninitialized,
     /// and thus one should use `ptr::write` for initializing it.
     ///
-    /// This function must return a valid (non-zero) pointer to
-    /// a location at which a value of type `Data` can be written.
+    /// This function must return a pointer through which a value
+    /// of type `Data` can be written.
     fn pointer(&mut self) -> *mut Data;
 }