Skip to content

Commit 7b93511

Browse files
authored
Update example. (#13)
1 parent 8033231 commit 7b93511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ A simple usage example:
1010
```dart
1111
import 'package:bit_array/bit_array.dart';
1212
13-
main() {
14-
final array = new FixedBitArray(1024);
13+
void main() {
14+
final array = BitArray(1024);
1515
array[12] = true;
1616
array.setBit(123);
1717
array.invertBit(200);
1818
array.clearBit(12);
1919
print(array.asIntIterable().toList()); // prints [123, 200]
2020
21-
final other = new FixedBitArray(1024);
21+
final other = BitArray(1024);
2222
other[123] = true;
2323
2424
final and = array & other;

0 commit comments

Comments
 (0)