Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Jan 22, 2025
1 parent 4afb451 commit 5438b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/candid/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ pub fn write_args<Tuple: ArgumentEncoder, Writer: std::io::Write>(
///
/// ```
/// # use candid::Decode;
/// # use candid::write_args;
/// # use candid::utils::write_args_ref;
/// let golden1 = 1u64;
/// let golden2 = "hello";
/// let mut buffer = Vec::new();
Expand Down Expand Up @@ -240,7 +240,7 @@ pub fn encode_args<Tuple: ArgumentEncoder>(arguments: Tuple) -> Result<Vec<u8>>
///
/// ```
/// # use candid::Decode;
/// # use candid::encode_args;
/// # use candid::utils::encode_args_ref;
/// let golden1 = 1u64;
/// let golden2 = "hello";
/// let buffer = encode_args_ref(&(golden1, golden2)).unwrap();
Expand Down

0 comments on commit 5438b5d

Please sign in to comment.