diff --git a/serde_test/src/assert.rs b/serde_test/src/assert.rs index 5d38270c..b5e03f52 100644 --- a/serde_test/src/assert.rs +++ b/serde_test/src/assert.rs @@ -22,7 +22,7 @@ pub fn assert_ser_tokens(value: &T, tokens: &[Token]) assert_eq!(ser.next_token(), None); } -// Expect an error serializing T +/// Expect an error serializing `T`. pub fn assert_ser_tokens_error(value: &T, tokens: &[Token], error: Error) where T: Serialize + PartialEq + Debug, { @@ -41,7 +41,7 @@ pub fn assert_de_tokens(value: &T, tokens: &[Token<'static>]) assert_eq!(de.next_token(), None); } -// Expect an error deserializing tokens into a T +/// Expect an error deserializing tokens into a `T`. pub fn assert_de_tokens_error(tokens: &[Token<'static>], error: Error) where T: Deserialize + PartialEq + Debug, {