Skip to content

Commit

Permalink
finish writing comment...
Browse files Browse the repository at this point in the history
  • Loading branch information
cavemanloverboy committed Dec 13, 2023
1 parent 26f7fda commit 3a347cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ pub trait InstructionData: Discriminator + AnchorSerialize {
}
/// Clears `vec` and writes instruction data to it
///
/// We use a Vec<u8> here because of the additional flexibility
/// We use a Vec<u8> here because of the additional flexibility of re-allocation (only if necessary),
/// and because the data field in `Instruction` expects a `Vec<u8>`.
fn write_to(&self, mut vec: &mut Vec<u8>) {
// Clear vector
vec.clear();
Expand Down

0 comments on commit 3a347cc

Please sign in to comment.