authorgravatar for j5d1c7@gmail.comJosh <j5d1c7@gmail.com> 2022-12-10 09:26:02-06:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-10 14:32:24-05:00
loga6a141bbe9ddfbb1e46f45880244ebf1e2b2b5bb
treec5efd228520c49ad126bdc70e51933b1a61abc88
parentfc6d7d2799fa297a65e8bb0052e9e2c7bca5c645

fix doc comments in bitset types


1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/bit_set.zig+4-4
...@@ -220,7 +220,7 @@ pub fn IntegerBitSet(comptime size: u16) type {...@@ -220,7 +220,7 @@ pub fn IntegerBitSet(comptime size: u16) type {
220220
221 /// Returns the union of two bit sets. Bits in the221 /// Returns the union of two bit sets. Bits in the
222 /// result are set if the corresponding bits were set222 /// result are set if the corresponding bits were set
223 /// in both inputs.223 /// in either input.
224 pub fn unionWith(self: Self, other: Self) Self {224 pub fn unionWith(self: Self, other: Self) Self {
225 var result = self;225 var result = self;
226 result.setUnion(other);226 result.setUnion(other);
...@@ -238,7 +238,7 @@ pub fn IntegerBitSet(comptime size: u16) type {...@@ -238,7 +238,7 @@ pub fn IntegerBitSet(comptime size: u16) type {
238238
239 /// Returns the xor of two bit sets. Bits in the239 /// Returns the xor of two bit sets. Bits in the
240 /// result are set if the corresponding bits were240 /// result are set if the corresponding bits were
241 /// set in not the same in both inputs.241 /// not the same in both inputs.
242 pub fn xorWith(self: Self, other: Self) Self {242 pub fn xorWith(self: Self, other: Self) Self {
243 var result = self;243 var result = self;
244 result.toggleSet(other);244 result.toggleSet(other);
...@@ -586,7 +586,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {...@@ -586,7 +586,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {
586586
587 /// Returns the union of two bit sets. Bits in the587 /// Returns the union of two bit sets. Bits in the
588 /// result are set if the corresponding bits were set588 /// result are set if the corresponding bits were set
589 /// in both inputs.589 /// in either input.
590 pub fn unionWith(self: Self, other: Self) Self {590 pub fn unionWith(self: Self, other: Self) Self {
591 var result = self;591 var result = self;
592 result.setUnion(other);592 result.setUnion(other);
...@@ -604,7 +604,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {...@@ -604,7 +604,7 @@ pub fn ArrayBitSet(comptime MaskIntType: type, comptime size: usize) type {
604604
605 /// Returns the xor of two bit sets. Bits in the605 /// Returns the xor of two bit sets. Bits in the
606 /// result are set if the corresponding bits were606 /// result are set if the corresponding bits were
607 /// set in not the same in both inputs.607 /// not the same in both inputs.
608 pub fn xorWith(self: Self, other: Self) Self {608 pub fn xorWith(self: Self, other: Self) Self {
609 var result = self;609 var result = self;
610 result.toggleSet(other);610 result.toggleSet(other);