Skip to content

Commit b4ae0dd

Browse files
Fix typo in variable name
1 parent 5a6500c commit b4ae0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/swig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const yiqContrast = rgb =>
3838
const getChannel = (start, hex) =>
3939
parseInt(hex.substr(start, 2), 16);
4040

41-
const hexTorgb = hex =>
41+
const hexToRgb = hex =>
4242
[0, 2, 4].map(x => getChannel(x, hex));
4343

4444
const colorToHex = color =>

0 commit comments

Comments
 (0)