diff options
| author | Joseph Crail <jbcrail@gmail.com> | 2015-03-12 22:42:38 -0400 |
|---|---|---|
| committer | Joseph Crail <jbcrail@gmail.com> | 2015-03-13 19:25:18 -0400 |
| commit | fcf3f3209accbb9240ea44a24165e35e50eba1d2 (patch) | |
| tree | feee63126e0c9c3457595881e940eb52462da586 /src/libstd/os.rs | |
| parent | 3e4be02b80a3dd27bce20870958fe0aef7e7336d (diff) | |
| download | rust-fcf3f3209accbb9240ea44a24165e35e50eba1d2.tar.gz rust-fcf3f3209accbb9240ea44a24165e35e50eba1d2.zip | |
Remove explicit syntax highlight from docs.
Diffstat (limited to 'src/libstd/os.rs')
| -rw-r--r-- | src/libstd/os.rs | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 866f7caffe8..ffe762450d0 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -125,7 +125,7 @@ pub const TMPBUF_SZ : uint = 1000; /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// // We assume that we are in a valid directory. @@ -145,7 +145,7 @@ pub fn getcwd() -> IoResult<Path> { /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// // We will iterate through the references to the element returned by os::env(); @@ -181,7 +181,7 @@ pub fn env_as_bytes() -> Vec<(Vec<u8>, Vec<u8>)> { /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// let key = "HOME"; @@ -223,7 +223,7 @@ fn byteify(s: OsString) -> Vec<u8> { /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// let key = "KEY"; @@ -263,7 +263,8 @@ pub fn unsetenv(n: &str) { /// environment variable. /// /// # Examples -/// ```rust +/// +/// ``` /// use std::os; /// /// let key = "PATH"; @@ -295,7 +296,7 @@ pub fn split_paths<T: BytesContainer>(unparsed: T) -> Vec<Path> { /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// use std::old_path::Path; /// @@ -356,7 +357,7 @@ pub fn dll_filename(base: &str) -> String { /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// match os::self_exe_name() { @@ -376,7 +377,7 @@ pub fn self_exe_name() -> Option<Path> { /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// match os::self_exe_path() { @@ -405,7 +406,7 @@ pub fn self_exe_path() -> Option<Path> { /// /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// match os::homedir() { @@ -494,7 +495,8 @@ pub fn tmpdir() -> Path { /// as is. /// /// # Examples -/// ```rust +/// +/// ``` /// use std::os; /// use std::old_path::Path; /// @@ -525,7 +527,8 @@ pub fn make_absolute(p: &Path) -> IoResult<Path> { /// whether the change was completed successfully or not. /// /// # Examples -/// ```rust +/// +/// ``` /// use std::os; /// use std::old_path::Path; /// @@ -546,7 +549,8 @@ pub fn errno() -> i32 { /// Return the string corresponding to an `errno()` value of `errnum`. /// /// # Examples -/// ```rust +/// +/// ``` /// use std::os; /// /// // Same as println!("{}", last_os_error()); @@ -743,7 +747,7 @@ extern "system" { /// See `String::from_utf8_lossy` for details. /// # Examples /// -/// ```rust +/// ``` /// use std::os; /// /// // Prints each argument on a separate line |
