go-hashids icon indicating copy to clipboard operation
go-hashids copied to clipboard

Update doc comments

Open makupi opened this issue 3 years ago • 0 comments

The documentation for the DecodeWithError functions currently don't reflect what the code actually does. When using DecodeWithError with a different MinLength the sanity check will fail, had to look at the actual code to figure out why that is happening because the comment said that MinLength has no effect, which is not correct.

The PR fixes the comments and mentions the sanity check which is done by the functions.

makupi avatar Jun 24 '22 11:06 makupi