about summary refs log tree commit diff
path: root/src/libstd/ffi
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-14 16:42:22 +0200
committerGitHub <noreply@github.com>2019-09-14 16:42:22 +0200
commitafc52916f658e7b5dc102ef7cd5b2784cd15c4e3 (patch)
tree2cc0ee0da68aa5d26053b787ee42b11671fa490c /src/libstd/ffi
parent45baedb14b94ee26c70439e244b73ab3090a4d13 (diff)
parent58a26c8fc0200c29bd753cf6fcfd80ee34a98920 (diff)
downloadrust-afc52916f658e7b5dc102ef7cd5b2784cd15c4e3.tar.gz
rust-afc52916f658e7b5dc102ef7cd5b2784cd15c4e3.zip
Rollup merge of #64203 - alexreg:rush-pr-2, r=centril
A few cosmetic improvements to code & comments in liballoc and libcore

Factored out from hacking on rustc for work on the REPL.

r? @Centril
Diffstat (limited to 'src/libstd/ffi')
-rw-r--r--src/libstd/ffi/c_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index bb346fb4db5..d7f4cc5d1fd 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -615,7 +615,7 @@ impl CString {
 }
 
 // Turns this `CString` into an empty string to prevent
-// memory unsafe code from working by accident. Inline
+// memory-unsafe code from working by accident. Inline
 // to prevent LLVM from optimizing it away in debug builds.
 #[stable(feature = "cstring_drop", since = "1.13.0")]
 impl Drop for CString {