1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: fix doctest
Author: Jacky Alciné <ayo@jacky.wtf>
Origin: upstream, https://gitlab.com/maxburon/microformats-parser/-/merge_requests/11/diffs?commit_id=5a5c54d
Bug: https://gitlab.com/maxburon/microformats-parser/-/issues/25
Last-Update: 2025-04-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/library/src/lib.rs
+++ b/library/src/lib.rs
@@ -49,6 +49,7 @@
/// ```
/// use microformats::from_html;
///
+/// let base_url: url::Url = "https://example.com".parse().unwrap();
/// let document = from_html(r#"
/// <html>
/// <head>
@@ -57,7 +58,7 @@
/// <body>
/// </body>
/// </html>
-/// "#, "https://example.com".parse().unwrap());
+/// "#, &base_url);
///
/// assert!(document.is_ok());
/// ```
|