about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-07-17 10:34:34 +0200
committerRalf Jung <post@ralfj.de>2019-07-19 09:48:06 +0200
commit7c1e4054787f99dff36aa66318b7589f78dfc7d9 (patch)
tree9337c675fb418501463e94bc567a0c2b693d185b /src/libstd/io
parent13ed0cf9e86a4fdbf75152849353050fea5d4461 (diff)
ONCE_INIT is deprecated-in-future only for bootstrap
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/util.rs b/src/libstd/io/util.rs
index 20979e02a43..33cc87eb795 100644
--- a/src/libstd/io/util.rs
+++ b/src/libstd/io/util.rs
@@ -48,7 +48,7 @@ pub fn copy<R: ?Sized, W: ?Sized>(reader: &mut R, writer: &mut W) -> io::Result<
     // `MaybeUninit`. Revisit this once we decided whether that is valid or not.
     // This is still technically undefined behavior due to creating a reference
     // to uninitialized data, but within libstd we can rely on more guarantees
-    // than if this code were in an external lib
+    // than if this code were in an external lib.
     unsafe { reader.initializer().initialize(buf.get_mut()); }
 
     let mut written = 0;