Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #157 from andy0130tw/patch-1
Browse files Browse the repository at this point in the history
Fix a typo in doc: lsetLength → setLengthLeft
  • Loading branch information
holgerd77 authored Oct 23, 2018
2 parents eb96e84 + 981531b commit ff7bb86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- [KECCAK256_RLP_ARRAY](#keccak256_rlp_array)
- [KECCAK256_RLP_ARRAY_S](#keccak256_rlp_array_s)
- [KECCAK256_RLP_S](#keccak256_rlp_s)
- [lsetLength](#lsetlength)
- [setLengthLeft](#setLengthLeft)
- [MAX_INTEGER](#max_integer)
- [privateToPublic](#privatetopublic)
- [TWO_POW256](#two_pow256)
Expand Down Expand Up @@ -551,7 +551,7 @@ Keccak-256 hash of the RLP of null (a `String`)

Type: [String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)

## lsetLength
## setLengthLeft

[index.js:106-122](https://github.com/ethereumjs/ethereumjs-util/blob/9396416913125711e526a05591e3ce8471c3a528/index.js#L106-L122 "Source code on GitHub")

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ exports.zeroAddress = function () {
/**
* Left Pads an `Array` or `Buffer` with leading zeros till it has `length` bytes.
* Or it truncates the beginning if it exceeds.
* @method lsetLength
* @method setLengthLeft
* @param {Buffer|Array} msg the value to pad
* @param {Number} length the number of bytes the output should be
* @param {Boolean} [right=false] whether to start padding form the left or right
Expand Down

0 comments on commit ff7bb86

Please sign in to comment.