We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8b26a commit 2c95941Copy full SHA for 2c95941
examples/singleapp/bitvector/bitvector.go
@@ -11,13 +11,13 @@ type (
11
bits []uint32
12
size int
13
}
14
- kind int
+ opcode int
15
)
16
17
const (
18
- AND kind = iota
19
- OR kind = iota
20
- XOR kind = iota
+ AND opcode = iota
+ OR opcode = iota
+ XOR opcode = iota
21
22
23
// NewBitVector は、指定されたサイズのビットベクタを作成します.
@@ -77,7 +77,7 @@ func (me *BitVector) Xor(other *BitVector) (*BitVector, error) {
77
return me.calc(other, XOR)
78
79
80
-func (me *BitVector) calc(other *BitVector, op kind) (*BitVector, error) {
+func (me *BitVector) calc(other *BitVector, op opcode) (*BitVector, error) {
81
if me.size != other.size {
82
return nil, fmt.Errorf("size mismatch: %d != %d", me.size, other.size)
83
0 commit comments