Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinolog committed Feb 21, 2017
1 parent dbd6b15 commit 8a1afd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ Nested mapping is supported:
}
# Nested objects could contain less indexed area, than block size,
# but mask will be calculated from outer level indexes only.
MyBinField.nested_bits == slice(1, 3) # Nested objects is exposed as indexes only at class property.
bf = MyBinField(0xFF)
0b00011111 == bf.nested
MyBinField.nested == slice(3, 8) # Nested objects is exposed as indexes only at class property.
0b00011111 == bf.nested # Slice was applied
# Nested received (generated as all bits in range) mask from top
# and size from slice
1 == bf.nested.nested_bit # __getitem__ and properties is available
Expand Down

0 comments on commit 8a1afd0

Please sign in to comment.