Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wkennedy committed Nov 14, 2023
1 parent 3b72800 commit 492288b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions borsh-serde-adapter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! last_name: "Doe".to_string(),
//! };
//!
//! let person_ser = person.try_to_vec().expect("Error trying to seralize Person");
//! let person_ser = to_vec(&person).expect("Error trying to serialize Person");
//!
//! let file = File::open("./tests/schema/person_schema.dat").unwrap();
//! let mut reader = BufReader::new(file);
Expand All @@ -27,7 +27,7 @@
//! would do something like this:
//!
//! ```
//! let person_serialized = person.try_to_vec().expect("Error trying to serialize Person");
//! let person_serialized = to_vec(&person).expect("Error trying to seralize Person");
//! let person_deserialized = Person::deserialize(&mut person_serialized.as_slice());
//! ```
//!
Expand Down

0 comments on commit 492288b

Please sign in to comment.