bluenote10 / yachalk

🖍️ Terminal string styling done right
MIT License
161 stars 3 forks source link

added the missing variable to make sure the code is runable #8

Closed zhongdai closed 2 years ago

zhongdai commented 2 years ago

When I copy and paste all the code section from Readme.md I just found the error, maybe we need to put a small fix to at least ensure the code is executable when people just copy and paste all of them.

bluenote10 commented 2 years ago

Actually I left it out on purpose, because the usage examples should demonstrate the usage in as few lines as possible, and the variable definition isn't required to understand the example / looks like noise in the example. If it is confusing people we can add it though.