Rollup merge of #23329 - jbcrail:rm-syntax-highlight, r=sanxiyn
As suggested by @steveklabnik in #23254, I removed the redundant Rust syntax highlighting from the documentation.
This commit is contained in:
commit
0b463b075e
51 changed files with 172 additions and 167 deletions
|
|
@ -132,7 +132,7 @@ pub const TMPBUF_SZ : uint = 1000;
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// // We assume that we are in a valid directory.
|
||||
|
|
@ -152,7 +152,7 @@ pub fn getcwd() -> IoResult<Path> {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// // We will iterate through the references to the element returned by os::env();
|
||||
|
|
@ -188,7 +188,7 @@ pub fn env_as_bytes() -> Vec<(Vec<u8>, Vec<u8>)> {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// let key = "HOME";
|
||||
|
|
@ -230,7 +230,7 @@ fn byteify(s: OsString) -> Vec<u8> {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// let key = "KEY";
|
||||
|
|
@ -270,7 +270,8 @@ pub fn unsetenv(n: &str) {
|
|||
/// environment variable.
|
||||
///
|
||||
/// # Examples
|
||||
/// ```rust
|
||||
///
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// let key = "PATH";
|
||||
|
|
@ -302,7 +303,7 @@ pub fn split_paths<T: BytesContainer>(unparsed: T) -> Vec<Path> {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
/// use std::old_path::Path;
|
||||
///
|
||||
|
|
@ -363,7 +364,7 @@ pub fn dll_filename(base: &str) -> String {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// match os::self_exe_name() {
|
||||
|
|
@ -383,7 +384,7 @@ pub fn self_exe_name() -> Option<Path> {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// match os::self_exe_path() {
|
||||
|
|
@ -412,7 +413,7 @@ pub fn self_exe_path() -> Option<Path> {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// match os::homedir() {
|
||||
|
|
@ -501,7 +502,8 @@ pub fn tmpdir() -> Path {
|
|||
/// as is.
|
||||
///
|
||||
/// # Examples
|
||||
/// ```rust
|
||||
///
|
||||
/// ```
|
||||
/// use std::os;
|
||||
/// use std::old_path::Path;
|
||||
///
|
||||
|
|
@ -532,7 +534,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;
|
||||
///
|
||||
|
|
@ -553,7 +556,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());
|
||||
|
|
@ -749,7 +753,7 @@ extern "system" {
|
|||
/// See `String::from_utf8_lossy` for details.
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use std::os;
|
||||
///
|
||||
/// // Prints each argument on a separate line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue