Skip to content

Commit 6756baa

Browse files
authored
Update README.md
1 parent 8feb8b9 commit 6756baa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -118,35 +118,35 @@ Functions
118118
The data type Mixed can be either a BitSet object, a String or an integer representing a native bitset with 31 bits.
119119

120120

121-
BitSet set(ndx[, value=0)
121+
BitSet set(ndx[, value=0])
122122
---
123123
Mutable; Sets value 0 or 1 to index `ndx` of the bitset
124124

125-
int get(int ndx)
125+
int get(ndx)
126126
---
127127
Gets the value at index ndx
128128

129129
BitSet setRange(from, to[, value=1])
130130
---
131131
Mutable; Helper function for set, to set an entire range to a given value
132132

133-
BitSet clear([from[, to])
133+
BitSet clear([from[, to]])
134134
---
135135
Mutable; Sets a portion of a given bitset to zero
136136

137137
- If no param is given, the whole bitset gets cleared
138138
- If one param is given, the bit at this index gets cleared
139139
- If two params are given, the range is cleared
140140

141-
BitSet slice([from[, to])
141+
BitSet slice([from[, to]])
142142
---
143143
Immutable; Extracts a portion of a given bitset as a new bitset
144144

145145
- If no param is given, the bitset is getting cloned
146146
- If one param is given, the index is used as offset
147147
- If two params are given, the range is returned as new BitSet
148148

149-
BitSet flip([from[, to])
149+
BitSet flip([from[, to]])
150150
---
151151
Mutable; Toggles a portion of a given bitset
152152

@@ -218,7 +218,7 @@ BitSet.fromHexString(str)
218218
---
219219
Alternative constructor to pass a hex string
220220

221-
BitSet.Random(n=32)
221+
BitSet.Random([n=32])
222222
---
223223
Create a random BitSet with a maximum length of n bits
224224

0 commit comments

Comments
 (0)