update docs example to be clearer

Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
Callum
2020-07-15 08:02:55 +01:00
committed by GitHub
co-authored by Steven
parent 710658cb61
commit 0c415fd82e
+4 -2
View File
@@ -85,10 +85,12 @@ slugger.slug('foo-1') // foo-1-2
`slugger.slug` can also be called with the `dryrun` option for stateless operation:
```js
slugger.slug('foo') // foo
slugger.slug('foo', { dryrun: true }) // foo-1
slugger.slug('foo') // foo-1
slugger.slug('foo', { dryrun: true }) // foo-2
slugger.slug('foo') // foo-2
slugger.slug('foo', { dryrun: true }) // foo-3
slugger.slug('foo', { dryrun: true }) // foo-3
slugger.slug('foo') // foo-3
slugger.slug('foo') // foo-4
...
```