mirror of https://github.com/rwf2/Rocket.git
Fix invalid JSON syntax in doc examples: remove trailing commas.
This commit is contained in:
parent
46a46df5fe
commit
38e4067a58
|
@ -180,7 +180,7 @@ macro_rules! pub_request_impl {
|
|||
/// let request: LocalRequest = request;
|
||||
/// let req = request
|
||||
/// .header(ContentType::JSON)
|
||||
/// .body(r#"{ "key": "value", "array": [1, 2, 3], }"#);
|
||||
/// .body(r#"{ "key": "value", "array": [1, 2, 3] }"#);
|
||||
/// # });
|
||||
/// ```
|
||||
#[inline]
|
||||
|
@ -207,7 +207,7 @@ macro_rules! pub_request_impl {
|
|||
/// # Client::_test(|_, request, _| {
|
||||
/// let request: LocalRequest = request;
|
||||
/// let mut request = request.header(ContentType::JSON);
|
||||
/// request.set_body(r#"{ "key": "value", "array": [1, 2, 3], }"#);
|
||||
/// request.set_body(r#"{ "key": "value", "array": [1, 2, 3] }"#);
|
||||
/// # });
|
||||
/// ```
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in New Issue