fix (backend-rs): fix doctest
This commit is contained in:
parent
7c32f682d4
commit
5ff6003c6e
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ static CLIENT: OnceCell<HttpClient> = OnceCell::new();
|
|||
/// # use backend_rs::util::http_client::client;
|
||||
/// 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?;
|
||||
///
|
||||
/// if response.status().is_success() {
|
||||
|
|
Loading…
Reference in a new issue