Skip to content

Commit e2e8db9

Browse files
Merge pull request #714 from Gerardwx/master
Fix typo in exception message.
2 parents ca4f8bd + 0773f73 commit e2e8db9

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)