Skip to content

Commit

Permalink
bitfield: correct a few typos (#21187)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier committed Apr 5, 2024
1 parent 38b3115 commit 67db38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/bitfield/bitfield.v
Expand Up @@ -93,7 +93,7 @@ pub fn (input BitField) str() string {
return output
}

// new creates an empty bit array of capable of storing 'size' bits.
// new creates an empty bit array capable of storing 'size' bits.
pub fn new(size int) BitField {
output := BitField{
size: size
Expand Down Expand Up @@ -365,7 +365,7 @@ pub fn bf_xor(input1 BitField, input2 BitField) BitField {
return output
}

// join concatenates two bit arrays and return the result as a new array.
// join concatenates two bit arrays and returns the result as a new array.
pub fn join(input1 BitField, input2 BitField) BitField {
output_size := input1.size + input2.size
mut output := new(output_size)
Expand Down

0 comments on commit 67db38a

Please sign in to comment.