Skip to content

Commit 0773f73

Browse files
committed
Typo in exception message.
1 parent ca4f8bd commit 0773f73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

richtextfx/src/main/java/org/fxmisc/richtext/model/StyleSpansBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private void _add(StyleSpan<S> span) {
181181

182182
private void ensureNotCreated() {
183183
if(created) {
184-
throw new IllegalStateException("Cannot reus StyleRangesBuilder after StyleRanges have been created.");
184+
throw new IllegalStateException("Cannot reuse StyleRangesBuilder after StyleRanges have been created.");
185185
}
186186
}
187187
}
@@ -447,4 +447,4 @@ public StyleSpan<S> getStyleSpan(int index) {
447447
throw new IndexOutOfBoundsException(String.valueOf(index));
448448
}
449449
}
450-
}
450+
}

0 commit comments

Comments
 (0)