diff --git a/README.md b/README.md index a7d3be9..b37646e 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ char[] alphabet = {'a','b','c'}; // Make IDs 10 characters long int size = 10; -String id = NanoIdUtils.randomNanoId(random, alphabet, 10); // "babbcaabcb" +String id = NanoIdUtils.randomNanoId(random, alphabet, size); // "babbcaabcb" ``` ## Copyright and license