Skip to content

Commit

Permalink
Tuple implementation allowed an extra parameter not handled by the code
Browse files Browse the repository at this point in the history
  • Loading branch information
dubzzz committed May 11, 2018
1 parent 472a6ac commit 58a44f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prebuild/tuple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const generateTuple = (num: number): string => {
// declare all signatures
...iota(num).map(id => `${signatureFor(id + 1)}: Tuple${id + 1}Arbitrary<${txCommas(id + 1)}>;`),
// start declare function
`${signatureFor(num + 1, true)} {`,
`${signatureFor(num, true)} {`,
// cascade ifs
...iota(num)
.reverse()
Expand Down

0 comments on commit 58a44f9

Please sign in to comment.