Fix invalid JSON syntax in doc examples: remove trailing commas.

This commit is contained in:
ami-GS 2021-01-17 21:33:36 -08:00 committed by Jeb Rosen
parent 46a46df5fe
commit 38e4067a58
1 changed files with 2 additions and 2 deletions

View File

@ -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]