@@ -252,7 +252,7 @@ impl Url {
252
252
/// # }
253
253
/// # run().unwrap();
254
254
/// ```
255
- ///
255
+ ///
256
256
/// # Errors
257
257
///
258
258
/// If the function can not parse an absolute URL from the given string,
@@ -315,7 +315,7 @@ impl Url {
315
315
/// ```rust
316
316
/// use url::Url;
317
317
/// # use url::ParseError;
318
- ///
318
+ ///
319
319
/// # fn run() -> Result<(), ParseError> {
320
320
/// let base = Url::parse("https://example.net/a/b.html")?;
321
321
/// let url = base.join("c.png")?;
@@ -331,7 +331,7 @@ impl Url {
331
331
///
332
332
/// # Errors
333
333
///
334
- /// If the function can not parse an URL from the given string
334
+ /// If the function can not parse an URL from the given string
335
335
/// with this URL as the base URL, a [`ParseError`] variant will be returned.
336
336
///
337
337
/// [`ParseError`]: enum.ParseError.html
@@ -1177,11 +1177,11 @@ impl Url {
1177
1177
/// assert_eq!(url.as_str(), "https://example.com/data.csv");
1178
1178
1179
1179
/// url.set_fragment(Some("cell=4,1-6,2"));
1180
- /// assert_eq!(url.as_str(), "https://example.com/data.csv#cell=4,1-6,2");
1180
+ /// assert_eq!(url.as_str(), "https://example.com/data.csv#cell=4,1-6,2");
1181
1181
/// assert_eq!(url.fragment(), Some("cell=4,1-6,2"));
1182
1182
///
1183
1183
/// url.set_fragment(None);
1184
- /// assert_eq!(url.as_str(), "https://example.com/data.csv");
1184
+ /// assert_eq!(url.as_str(), "https://example.com/data.csv");
1185
1185
/// assert!(url.fragment().is_none());
1186
1186
/// # Ok(())
1187
1187
/// # }
@@ -1234,7 +1234,7 @@ impl Url {
1234
1234
/// assert_eq!(url.as_str(), "https://example.com/products");
1235
1235
///
1236
1236
/// url.set_query(Some("page=2"));
1237
- /// assert_eq!(url.as_str(), "https://example.com/products?page=2");
1237
+ /// assert_eq!(url.as_str(), "https://example.com/products?page=2");
1238
1238
/// assert_eq!(url.query(), Some("page=2"));
1239
1239
/// # Ok(())
1240
1240
/// # }
@@ -1330,12 +1330,12 @@ impl Url {
1330
1330
/// # fn run() -> Result<(), ParseError> {
1331
1331
/// let mut url = Url::parse("https://example.com")?;
1332
1332
/// url.set_path("api/comments");
1333
- /// assert_eq!(url.as_str(), "https://example.com/api/comments");
1333
+ /// assert_eq!(url.as_str(), "https://example.com/api/comments");
1334
1334
/// assert_eq!(url.path(), "/api/comments");
1335
1335
///
1336
1336
/// let mut url = Url::parse("https://example.com/api")?;
1337
1337
/// url.set_path("data/report.csv");
1338
- /// assert_eq!(url.as_str(), "https://example.com/data/report.csv");
1338
+ /// assert_eq!(url.as_str(), "https://example.com/data/report.csv");
1339
1339
/// assert_eq!(url.path(), "/data/report.csv");
1340
1340
/// # Ok(())
1341
1341
/// # }
@@ -1496,7 +1496,7 @@ impl Url {
1496
1496
/// ```
1497
1497
/// use url::Url;
1498
1498
/// # use url::ParseError;
1499
- ///
1499
+ ///
1500
1500
/// # fn run() -> Result<(), ParseError> {
1501
1501
/// let mut url = Url::parse("foo://example.net")?;
1502
1502
/// let result = url.set_host(None);
@@ -1512,7 +1512,7 @@ impl Url {
1512
1512
/// ```
1513
1513
/// use url::Url;
1514
1514
/// # use url::ParseError;
1515
- ///
1515
+ ///
1516
1516
/// # fn run() -> Result<(), ParseError> {
1517
1517
/// let mut url = Url::parse("https://example.net")?;
1518
1518
/// let result = url.set_host(None);
@@ -1528,7 +1528,7 @@ impl Url {
1528
1528
/// ```
1529
1529
/// use url::Url;
1530
1530
/// # use url::ParseError;
1531
- ///
1531
+ ///
1532
1532
/// # fn run() -> Result<(), ParseError> {
1533
1533
/// let mut url = Url::parse("mailto:rms@example.net")?;
1534
1534
///
@@ -1838,7 +1838,7 @@ impl Url {
1838
1838
/// ```
1839
1839
/// use url::Url;
1840
1840
/// # use url::ParseError;
1841
- ///
1841
+ ///
1842
1842
/// # fn run() -> Result<(), ParseError> {
1843
1843
/// let mut url = Url::parse("https://example.net")?;
1844
1844
/// let result = url.set_scheme("foo");
@@ -1855,7 +1855,7 @@ impl Url {
1855
1855
/// ```
1856
1856
/// use url::Url;
1857
1857
/// # use url::ParseError;
1858
- ///
1858
+ ///
1859
1859
/// # fn run() -> Result<(), ParseError> {
1860
1860
/// let mut url = Url::parse("https://example.net")?;
1861
1861
/// let result = url.set_scheme("foõ");
@@ -1871,7 +1871,7 @@ impl Url {
1871
1871
/// ```
1872
1872
/// use url::Url;
1873
1873
/// # use url::ParseError;
1874
- ///
1874
+ ///
1875
1875
/// # fn run() -> Result<(), ParseError> {
1876
1876
/// let mut url = Url::parse("mailto:rms@example.net")?;
1877
1877
/// let result = url.set_scheme("https");
@@ -1920,7 +1920,7 @@ impl Url {
1920
1920
/// ```
1921
1921
/// # if cfg!(unix) {
1922
1922
/// use url::Url;
1923
- ///
1923
+ ///
1924
1924
/// # fn run() -> Result<(), ()> {
1925
1925
/// let url = Url::from_file_path("/tmp/foo.txt")?;
1926
1926
/// assert_eq!(url.as_str(), "file:///tmp/foo.txt");
0 commit comments