Turn comments into doc comments

This commit is contained in:
David Tolnay 2016-06-29 00:58:33 -07:00
parent 10b1508d4a
commit f531be1524
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -22,7 +22,7 @@ pub fn assert_ser_tokens<T>(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<T>(value: &T, tokens: &[Token], error: Error)
where T: Serialize + PartialEq + Debug,
{
@ -41,7 +41,7 @@ pub fn assert_de_tokens<T>(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<T>(tokens: &[Token<'static>], error: Error)
where T: Deserialize + PartialEq + Debug,
{