Skip to content

Commit

Permalink
#5 update rustdoc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinAbdelhamid committed Sep 10, 2024
1 parent 10a4793 commit bd68c67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
//!
//! // Create message frame
//!let can_id = Id::Standard(StandardId::new(0x55).unwrap());
//!let message_type = Can20 {};
//!let message_type = Can20::<8> {};
//!let payload = [1, 2, 3, 4, 5, 6, 7, 8];
//!let pl_bytes = Bytes::copy_from_slice(&payload);
//!let can_message = TxMessage::new(message_type, pl_bytes, can_id).unwrap();
Expand Down
4 changes: 2 additions & 2 deletions src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//!
//! // Frame ID
//! let message_id = Id::Standard(StandardId::new(0x123).unwrap());
//! // Set message type to CAN2.0
//! let message_type = Can20{};
//! // Set message type to CAN2.0 with 8 data bytes
//! let message_type = Can20::<8>{};
//! // Create payload buffer
//! let payload = [1,2,3,4,5,6,7,8];
//! // Create Bytes object
Expand Down

0 comments on commit bd68c67

Please sign in to comment.