Skip to content

Commit

Permalink
add comment on message::Builder::new_default()
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 20, 2022
1 parent 551dcdf commit e342ce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions capnp/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,8 @@ fn test_allocate_max() {
}

impl Builder<HeapAllocator> {
/// Constructs a new `message::Builder<HeapAllocator>` whose first segment has length
/// `SUGGESTED_FIRST_SEGMENT_WORDS`.
pub fn new_default() -> Builder<HeapAllocator> {
Builder::new(HeapAllocator::new())
}
Expand Down

0 comments on commit e342ce2

Please sign in to comment.