mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
fix doc comments in bitset types
This commit is contained in:
parent
fc6d7d2799
commit
a6a141bbe9
@ -220,7 +220,7 @@ pub fn IntegerBitSet(comptime size: u16) type {
|
||||
|
||||
/// Returns the union of two bit sets. Bits in the
|
||||
/// result are set if the corresponding bits were set
|
||||
/// in both inputs.
|
||||
/// in either input.
|
||||
pub fn unionWith(self: Self, other: Self) Self {
|
||||
var result = self;
|
||||
result.setUnion(other);
|
||||
@ -238,7 +238,7 @@ pub fn IntegerBitSet(comptime size: u16) type {
|
||||
|
||||
/// Returns the xor of two bit sets. Bits in the
|
||||
/// result are set if the corresponding bits were
|
||||
/// set in not the same in both inputs.
|
||||
/// not the same in both inputs.
|
||||
pub fn xorWith(self: Self, other: Self) Self {
|
||||
var result = self;
|
||||
result.toggleSet(other);
|
||||
@ -586,7 +586,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {
|
||||
|
||||
/// Returns the union of two bit sets. Bits in the
|
||||
/// result are set if the corresponding bits were set
|
||||
/// in both inputs.
|
||||
/// in either input.
|
||||
pub fn unionWith(self: Self, other: Self) Self {
|
||||
var result = self;
|
||||
result.setUnion(other);
|
||||
@ -604,7 +604,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {
|
||||
|
||||
/// Returns the xor of two bit sets. Bits in the
|
||||
/// result are set if the corresponding bits were
|
||||
/// set in not the same in both inputs.
|
||||
/// not the same in both inputs.
|
||||
pub fn xorWith(self: Self, other: Self) Self {
|
||||
var result = self;
|
||||
result.toggleSet(other);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user