teloc icon indicating copy to clipboard operation
teloc copied to clipboard

Fix code example in README

Open aburkhalter512 opened this issue 3 years ago • 0 comments

Fixes the code example in the README. The root of the problem was that the instance of the integer doesn't implement DependencyClone so replacing it with a reference fixes the problem. I additionally wrapped it in a struct to better represent actual usage (I don't expect raw integers to be added as instances as standard practice. Wrapping them in a "config" struct seems more likely)

Fixes https://github.com/p0lunin/teloc/issues/28

aburkhalter512 avatar May 28 '22 04:05 aburkhalter512