send_str to send_string

This commit is contained in:
Martin Algesten
2018-06-22 10:13:31 +02:00
parent 293733643c
commit 5f975270bf
5 changed files with 9 additions and 10 deletions

View File

@@ -186,10 +186,10 @@ impl Request {
/// ```
/// let r = ureq::post("/my_page")
/// .content_type("text/plain")
/// .send_str("Hello World!");
/// .send_string("Hello World!");
/// println!("{:?}", r);
/// ```
pub fn send_str<S>(&mut self, data: S) -> Response
pub fn send_string<S>(&mut self, data: S) -> Response
where
S: Into<String>,
{