Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Oct 20, 2024
1 parent 320560e commit ef7b14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/reference/crypto/alphabet.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: "alphabet()"
Generates a string with all the characters defined in the provided pattern:

- `a-z`: `abcdefghijklmnopqrstuvwxyz`
- `A-Z`: `ABCDEFGHIJKLMNOPqRSTUVWXYZ`
- `A-Z`: `ABCDEFGHIJKLMNOPQRSTUVWXYZ`
- `0-9`: `0123456789`
- `-`: Character `-`
- `_`: Character `_`
Expand All @@ -29,7 +29,7 @@ function alphabet(...patterns: "a-z" | "A-Z" | "0-9" | "-" | "_"): string;
```ts
import { alphabet } from "oslo/crypto";

// "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPqRSTUVWXYZ0123456789"
// "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
alphabet("a-z", "A-Z", "0-9");

// "0123456789"
Expand Down

0 comments on commit ef7b14b

Please sign in to comment.