Skip to content

Commit

Permalink
properly document csscolors name2hex
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Apr 24, 2019
1 parent 078d310 commit c0bfde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csscolors.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ def hex2name(value):


def name2hex(name):
"""Convert CSS hex to webcolor name."""
"""Convert webcolor name to CSS hex."""

return name2hex_map.get(name.lower(), None)

0 comments on commit c0bfde4

Please sign in to comment.