fix (backend-rs): fix doctest

This commit is contained in:
naskya 2024-06-06 17:17:51 +09:00
parent 7c32f682d4
commit 5ff6003c6e
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -22,7 +22,7 @@ static CLIENT: OnceCell<HttpClient> = OnceCell::new();
/// # use backend_rs::util::http_client::client; /// # use backend_rs::util::http_client::client;
/// use isahc::AsyncReadResponseExt; /// use isahc::AsyncReadResponseExt;
/// ///
/// # fn f() -> Result<(), Box<dyn std::error::Error>> { /// # async fn f() -> Result<(), Box<dyn std::error::Error>> {
/// let mut response = client()?.get_async("https://example.com/").await?; /// let mut response = client()?.get_async("https://example.com/").await?;
/// ///
/// if response.status().is_success() { /// if response.status().is_success() {