doc fixes
This commit is contained in:
@@ -136,7 +136,8 @@ impl Response {
|
||||
/// Tells if this response is "synthetic".
|
||||
///
|
||||
/// The [methods](struct.Request.html#method.call) [firing](struct.Request.html#method.send)
|
||||
/// [off](struct.Request.html#method.send_string) [requests](struct.Request.html#method.send_json)
|
||||
/// [off](struct.Request.html#method.send_string)
|
||||
/// [requests](struct.Request.html#method.send_json)
|
||||
/// all return a `Response`; there is no rust style `Result`.
|
||||
///
|
||||
/// Rather than exposing a custom error type through results, this library has opted
|
||||
@@ -150,7 +151,8 @@ impl Response {
|
||||
/// The specific mapping of error to code can be seen in the [`Error`](enum.Error.html) doc.
|
||||
///
|
||||
/// However if the distinction is important, this method can be used to tell. Also see
|
||||
/// [error()](struct.Response.html#method.synthetic_error) to see the actual underlying error.
|
||||
/// [synthetic_error()](struct.Response.html#method.synthetic_error)
|
||||
/// to see the actual underlying error.
|
||||
///
|
||||
/// ```
|
||||
/// // scheme that this library doesn't understand
|
||||
@@ -291,7 +293,7 @@ impl Response {
|
||||
///
|
||||
/// ```
|
||||
/// let resp =
|
||||
/// ureq::get("https://raw.githubusercontent.com/algesten/ureq/master/src/test/hello_world.json").call();
|
||||
/// ureq::get("https://s3.amazonaws.com/foosrvr/hello_world.json").call();
|
||||
///
|
||||
/// let json = resp.into_json().unwrap();
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user