/** * Create an example text (usually just one sentence) with an error - the error must be marked with {@code <marker>...</marker>}. * @throws IllegalArgumentException if the {@code <marker>...</marker>} is missing * @since 2.5 */ public static IncorrectExample wrong(String example) { requireMarkup(example); return new IncorrectExample(example); }
/** * Create an example text (usually just one sentence) with an error - the error must be marked with {@code <marker>...</marker>}. * @throws IllegalArgumentException if the {@code <marker>...</marker>} is missing * @since 2.5 */ public static IncorrectExample wrong(String example) { requireMarkup(example); return new IncorrectExample(example); }