froebel icon indicating copy to clipboard operation
froebel copied to clipboard

fix: Use correct function in example

Open naltun opened this issue 2 years ago • 2 comments

In the kebab case function example, snake is used instead. To demonstrate the issue:

~ $ deno
> import { kebab, snake } from "https://deno.land/x/[email protected]/case.ts";
undefined
> snake('fooBar')
"foo_bar"
> kebab('fooBar')
"foo-bar"

The actual example uses snake but outputs kebab: image

This PR addresses the inconsistency.

naltun avatar Aug 08 '22 14:08 naltun

Thanks for the PR, good catch!

The README is generated from the JSDoc comments of the exported utilities via a script. So please update the JSDoc comment in case.ts and run scripts/docs (for this to work you will first have to run npm install in the npm directory). That should create the same change in the README.

MathisBullinger avatar Aug 08 '22 16:08 MathisBullinger

Will get to this shortly. I'm wrapping up a move. 👍 🚚 💨

naltun avatar Aug 18 '22 19:08 naltun

fixed by b43e822

MathisBullinger avatar Oct 08 '22 13:10 MathisBullinger