Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing links and examples for path modules and structs #38946

Merged
merged 1 commit into from
Jan 14, 2017

Conversation

GuillaumeGomez
Copy link
Member

@frewsxcv
Copy link
Member

frewsxcv commented Jan 9, 2017

Looks great! Thanks!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 9, 2017

📌 Commit 8c40a0a has been approved by frewsxcv

//! This module provides two types, `PathBuf` and `Path` (akin to `String` and
//! `str`), for working with paths abstractly. These types are thin wrappers
//! around `OsString` and `OsStr` respectively, meaning that they work directly
//! This module provides two types, [`PathBuf`] and [`Path`] (akin to [`String`] and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Path] (akin to...) seems to be interpreted as a Markdown link, causing Travis failure in linkcheck.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well found!

@sanxiyn
Copy link
Member

sanxiyn commented Jan 10, 2017

@bors r-

@GuillaumeGomez
Copy link
Member Author

Updated.

/// # Examples
///
/// ```no_run
/// use std::path::{Path, PathBuf};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import: PathBuf

/// # Examples
///
/// ```no_run
/// use std::path::{Path, PathBuf};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import: PathBuf

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(certainly github bug actually)

@GuillaumeGomez
Copy link
Member Author

Updated.

/// use std::path::Path;
///
/// let path = Path::new("/foo/test/../test/bar.rs");
/// assert_eq!(path.canonicalize().unwrap(), PathBuf::from("/foo/test/bar.rs"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing import PathBuf

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh damn, we'll never end it haha.

@GuillaumeGomez
Copy link
Member Author

Updated.

@frewsxcv
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 12, 2017

📌 Commit 28d1ac3 has been approved by frewsxcv

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jan 13, 2017
Add missing links and examples for path modules and structs

r? @frewsxcv
bors added a commit that referenced this pull request Jan 13, 2017
Rollup of 10 pull requests

- Successful merges: #38362, #38636, #38877, #38946, #38965, #38986, #38994, #38995, #39024, #39027
- Failed merges:
@bors bors merged commit 28d1ac3 into rust-lang:master Jan 14, 2017
@GuillaumeGomez GuillaumeGomez deleted the path_doc branch November 24, 2017 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants