aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-04-08 08:23:54 +0000
committerFuwn <[email protected]>2024-04-08 08:23:54 +0000
commit375460086818710c132519010227ccf32691d527 (patch)
tree60c9742fa608e4a7d459cfc637f72c9c672ec810
parentdocs(readme): clean up (diff)
downloadgerm-375460086818710c132519010227ccf32691d527.tar.xz
germ-375460086818710c132519010227ccf32691d527.zip
fix(tests): blocking and non-blocking request
-rw-r--r--src/request/blocking.rs4
-rw-r--r--src/request/non_blocking.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/request/blocking.rs b/src/request/blocking.rs
index 0d78b52..ebf8515 100644
--- a/src/request/blocking.rs
+++ b/src/request/blocking.rs
@@ -27,7 +27,9 @@ use {
/// # Example
///
/// ```rust
-/// match germ::request::request(&url::Url::parse("gemini://fuwn.me").unwrap()) {
+/// match germ::request::blocking::request(
+/// &url::Url::parse("gemini://fuwn.me").unwrap(),
+/// ) {
/// Ok(response) => println!("{:?}", response),
/// Err(_) => {}
/// }
diff --git a/src/request/non_blocking.rs b/src/request/non_blocking.rs
index c578703..84835a8 100644
--- a/src/request/non_blocking.rs
+++ b/src/request/non_blocking.rs
@@ -30,10 +30,8 @@ use {
/// ```rust
/// #[tokio::main]
/// async fn main() {
-/// match germ::request::sync::request(
-/// &url::Url::parse("gemini://fuwn.me").unwrap(),
-/// )
-/// .await
+/// match germ::request::request(&url::Url::parse("gemini://fuwn.me").unwrap())
+/// .await
/// {
/// Ok(response) => println!("{:?}", response),
/// Err(_) => {}