Skip to content

Commit 9cc5080

Browse files
authored
Improve language in no words found (#347)
1 parent 7608d2e commit 9cc5080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/minecraft/constants/words.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function getRandomWord(length) {
268268
const filteredWords = words.filter((word) => word.length == length);
269269

270270
if (filteredWords.length === 0) {
271-
throw `No words found with the ${length} characters.`;
271+
throw `No words found with ${length} characters.`;
272272
}
273273

274274
return filteredWords[Math.floor(Math.random() * filteredWords.length)];

0 commit comments

Comments
 (0)