mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-12 15:31:07 +00:00
fix some typos
This commit is contained in:
+1
-1
@@ -513,7 +513,7 @@ pub trait Deserialize<'de>: Sized {
|
|||||||
/// have been overwritten. Although whatever state that is will be
|
/// have been overwritten. Although whatever state that is will be
|
||||||
/// memory-safe.
|
/// memory-safe.
|
||||||
///
|
///
|
||||||
/// This is generally useful when repeateadly deserializing values that
|
/// This is generally useful when repeatedly deserializing values that
|
||||||
/// are processed one at a time, where the value of `self` doesn't matter
|
/// are processed one at a time, where the value of `self` doesn't matter
|
||||||
/// when the next deserialization occurs.
|
/// when the next deserialization occurs.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
//! # use serde::ser::{Serialize, Serializer, SerializeMap};
|
//! # use serde::ser::{Serialize, Serializer, SerializeMap};
|
||||||
//! # use serde::de::{Deserialize, Deserializer, Visitor, MapAccess};
|
//! # use serde::de::{Deserialize, Deserializer, Visitor, MapAccess};
|
||||||
//! #
|
//! #
|
||||||
//! # // Dumb immitation of LinkedHashMap.
|
//! # // Dumb imitation of LinkedHashMap.
|
||||||
//! # #[derive(PartialEq, Debug)]
|
//! # #[derive(PartialEq, Debug)]
|
||||||
//! # struct LinkedHashMap<K, V>(Vec<(K, V)>);
|
//! # struct LinkedHashMap<K, V>(Vec<(K, V)>);
|
||||||
//! #
|
//! #
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ fn ip_addr_roundtrip() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn socked_addr_roundtrip() {
|
fn socket_addr_roundtrip() {
|
||||||
assert_tokens(
|
assert_tokens(
|
||||||
&net::SocketAddr::from((*b"1234567890123456", 1234)).compact(),
|
&net::SocketAddr::from((*b"1234567890123456", 1234)).compact(),
|
||||||
&seq![
|
&seq![
|
||||||
|
|||||||
Reference in New Issue
Block a user