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 more doc examples. #212

Merged
merged 3 commits into from Aug 24, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Add another `url::Url::username` doc example.

  • Loading branch information
frewsxcv committed Aug 24, 2016
commit 80c0c4889eb471bb6b3d42bcc8c426698f699e40
@@ -460,6 +460,9 @@ impl Url {
/// let url = Url::parse("ftp://rms@example.com").unwrap();
/// assert_eq!(url.username(), "rms");
///
/// let url = Url::parse("ftp://:secret123@example.com").unwrap();
/// assert_eq!(url.username(), "");
///
/// let url = Url::parse("https://example.com").unwrap();
/// assert_eq!(url.username(), "");
/// ```
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.