Skip to content

Commit 2c95941

Browse files
committed
Update
1 parent 4d8b26a commit 2c95941

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/singleapp/bitvector/bitvector.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ type (
1111
bits []uint32
1212
size int
1313
}
14-
kind int
14+
opcode int
1515
)
1616

1717
const (
18-
AND kind = iota
19-
OR kind = iota
20-
XOR kind = iota
18+
AND opcode = iota
19+
OR opcode = iota
20+
XOR opcode = iota
2121
)
2222

2323
// NewBitVector は、指定されたサイズのビットベクタを作成します.
@@ -77,7 +77,7 @@ func (me *BitVector) Xor(other *BitVector) (*BitVector, error) {
7777
return me.calc(other, XOR)
7878
}
7979

80-
func (me *BitVector) calc(other *BitVector, op kind) (*BitVector, error) {
80+
func (me *BitVector) calc(other *BitVector, op opcode) (*BitVector, error) {
8181
if me.size != other.size {
8282
return nil, fmt.Errorf("size mismatch: %d != %d", me.size, other.size)
8383
}

0 commit comments

Comments
 (0)