Skip to content

Commit

Permalink
[MINOR] Minor update for document
Browse files Browse the repository at this point in the history
Two minor doc errors in `BytesToBytesMap` and `UnsafeRow`.

Author: Liang-Chi Hsieh <[email protected]>

Closes apache#5906 from viirya/minor_doc and squashes the following commits:

27f9089 [Liang-Chi Hsieh] Minor update for doc.
  • Loading branch information
viirya authored and jeanlyn committed May 28, 2015
1 parent bbac935 commit 1da5f7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void pointTo(

private void assertIndexIsValid(int index) {
assert index >= 0 : "index (" + index + ") should >= 0";
assert index < numFields : "index (" + index + ") should <= " + numFields;
assert index < numFields : "index (" + index + ") should < " + numFields;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ public int getValueLength() {
* As an example usage, here's the proper way to store a new key:
* <p>
* <pre>
* Location loc = map.lookup(keyBaseOffset, keyBaseObject, keyLengthInBytes);
* Location loc = map.lookup(keyBaseObject, keyBaseOffset, keyLengthInBytes);
* if (!loc.isDefined()) {
* loc.putNewKey(keyBaseOffset, keyBaseObject, keyLengthInBytes, ...)
* loc.putNewKey(keyBaseObject, keyBaseOffset, keyLengthInBytes, ...)
* }
* </pre>
* <p>
Expand Down

0 comments on commit 1da5f7a

Please sign in to comment.