Skip to content

Commit 395691d

Browse files
committed
hate the .md
1 parent 6ae1ba6 commit 395691d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ Works well for Bloom filters (the reason I wrote it).
1616
Create a bit array 1000 bits wide:
1717

1818
```ruby
19-
ba = BitArray.new(1000)
19+
ba = BitArray.new(1000)
2020
```
2121

2222
Setting and reading bits:
2323

2424
```ruby
25-
ba[100] = 1
26-
ba[100] .. => 1
27-
ba[100] = 0
25+
ba[100] = 1
26+
ba[100] .. => 1
27+
ba[100] = 0
2828
```
2929

3030
More:
3131

3232
```ruby
33-
ba = BitArray.new(20)
34-
[1,3,5,9,11,13,15].each { |i| ba[i] = 1 }
35-
ba.to_s
36-
#=> "01010100010101010000"
37-
ba.total_set
38-
#=> 7
33+
ba = BitArray.new(20)
34+
[1,3,5,9,11,13,15].each { |i| ba[i] = 1 }
35+
ba.to_s
36+
#=> "01010100010101010000"
37+
ba.total_set
38+
#=> 7
3939
```

0 commit comments

Comments
 (0)