fix doc lints
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
fa3abc9431
commit
0120acc116
@ -151,7 +151,7 @@ where
|
|||||||
/// }"#;
|
/// }"#;
|
||||||
///
|
///
|
||||||
/// let object = serde_json::from_str(input).unwrap();
|
/// let object = serde_json::from_str(input).unwrap();
|
||||||
/// let canonical = ruma_signatures::canonical_json(&object).unwrap();
|
/// let canonical = ruma_signatures::canonical_json(object).unwrap();
|
||||||
///
|
///
|
||||||
/// assert_eq!(canonical, r#"{"日":1,"本":2}"#);
|
/// assert_eq!(canonical, r#"{"日":1,"本":2}"#);
|
||||||
/// ```
|
/// ```
|
||||||
@ -204,7 +204,7 @@ pub fn canonical_json(object: CanonicalJsonObject) -> Result<String, Error> {
|
|||||||
/// public_key_map.insert("domain".into(), public_key_set);
|
/// public_key_map.insert("domain".into(), public_key_set);
|
||||||
///
|
///
|
||||||
/// // Verify at least one signature for each entity in `public_key_map`.
|
/// // Verify at least one signature for each entity in `public_key_map`.
|
||||||
/// assert!(ruma_signatures::verify_json(&public_key_map, &object).is_ok());
|
/// assert!(ruma_signatures::verify_json(&public_key_map, object).is_ok());
|
||||||
/// ```
|
/// ```
|
||||||
pub fn verify_json(
|
pub fn verify_json(
|
||||||
public_key_map: &PublicKeyMap,
|
public_key_map: &PublicKeyMap,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user