about summary refs log tree commit diff
path: root/src/librustrt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-04 18:30:59 +0000
committerbors <bors@rust-lang.org>2014-09-04 18:30:59 +0000
commitd3e7922ddd5f2abfa4d5139e8bca5fab3e796f33 (patch)
tree1b6d41765ea51745549db326611a726287f20958 /src/librustrt
parentbef51ba234a42c52939bcb0f8a5deb7c345d8eba (diff)
parentb7bfe04b2d003d08f6ac450f41d7f221cb87f129 (diff)
downloadrust-d3e7922ddd5f2abfa4d5139e8bca5fab3e796f33.tar.gz
rust-d3e7922ddd5f2abfa4d5139e8bca5fab3e796f33.zip
auto merge of #16982 : jbcrail/rust/comment-and-string-corrections, r=alexcrichton
I corrected spelling and capitalization errors in comments and strings.
Diffstat (limited to 'src/librustrt')
-rw-r--r--src/librustrt/args.rs2
-rw-r--r--src/librustrt/c_str.rs2
-rw-r--r--src/librustrt/local_ptr.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/librustrt/args.rs b/src/librustrt/args.rs
index 6ac36f8b856..4c444036e1d 100644
--- a/src/librustrt/args.rs
+++ b/src/librustrt/args.rs
@@ -14,7 +14,7 @@
 //! the processes `argc` and `argv` arguments to be stored
 //! in a globally-accessible location for use by the `os` module.
 //!
-//! Only valid to call on linux. Mac and Windows use syscalls to
+//! Only valid to call on Linux. Mac and Windows use syscalls to
 //! discover the command line arguments.
 //!
 //! FIXME #7756: Would be nice for this to not exist.
diff --git a/src/librustrt/c_str.rs b/src/librustrt/c_str.rs
index d68fef30622..000def0cc3b 100644
--- a/src/librustrt/c_str.rs
+++ b/src/librustrt/c_str.rs
@@ -19,7 +19,7 @@ string types are *not* null terminated.
 
 The other problem with translating Rust strings to C strings is that Rust
 strings can validly contain a null-byte in the middle of the string (0 is a
-valid unicode codepoint). This means that not all Rust strings can actually be
+valid Unicode codepoint). This means that not all Rust strings can actually be
 translated to C strings.
 
 # Creation of a C string
diff --git a/src/librustrt/local_ptr.rs b/src/librustrt/local_ptr.rs
index ef56cd3b1da..8ce12a5157d 100644
--- a/src/librustrt/local_ptr.rs
+++ b/src/librustrt/local_ptr.rs
@@ -107,10 +107,10 @@ pub mod compiled {
     // efficient sequence of instructions. This also involves dealing with fun
     // stuff in object files and whatnot. Regardless, it turns out this causes
     // trouble with green threads and lots of optimizations turned on. The
-    // following case study was done on linux x86_64, but I would imagine that
+    // following case study was done on Linux x86_64, but I would imagine that
     // other platforms are similar.
     //
-    // On linux, the instruction sequence for loading the tls pointer global
+    // On Linux, the instruction sequence for loading the tls pointer global
     // looks like:
     //
     //      mov %fs:0x0, %rax