Skip to content

Commit 7456bad

Browse files
authored
Merge pull request #627 from jcamiel/fix-sample-doc
Fix doc tests: uses https://rust-lang.org instead of https://www.rust-lang.org
2 parents 4591a9a + a0761c4 commit 7456bad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/easy/handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use crate::Error;
4343
///
4444
/// let mut easy = Easy2::new(Collector(Vec::new()));
4545
/// easy.get(true).unwrap();
46-
/// easy.url("https://www.rust-lang.org/").unwrap();
46+
/// easy.url("https://rust-lang.org/").unwrap();
4747
/// easy.perform().unwrap();
4848
///
4949
/// assert_eq!(easy.response_code().unwrap(), 200);
@@ -368,7 +368,7 @@ pub fn ssl_ctx(cx: *mut c_void) -> Result<(), Error> {
368368
///
369369
/// let mut easy = Easy2::new(Collector(Vec::new()));
370370
/// easy.get(true).unwrap();
371-
/// easy.url("https://www.rust-lang.org/").unwrap();
371+
/// easy.url("https://rust-lang.org/").unwrap();
372372
/// easy.perform().unwrap();
373373
///
374374
/// assert_eq!(easy.response_code().unwrap(), 200);

0 commit comments

Comments
 (0)