Skip to content

Commit

Permalink
[docs] fix typo (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll authored Aug 6, 2024
1 parent 473f590 commit 1660323
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Span private constructor(val text: String, val style: TextStyle = DEFAULT_
fun word(text: String, style: TextStyle = DEFAULT_STYLE): Span {
require(text.isNotEmpty()) { "Span text cannot be empty" }
require(text.count { it.isWhitespace() }.let { it == 0 || it == text.length }) {
"Spans must contain ether all whitespace, or no whitespace: \"$text\""
"Spans must contain either all whitespace, or no whitespace: \"$text\""
}
require("\n" !in text) { "Spans cannot contain newlines" }
require(CSI !in text) { "Spans cannot contain ANSI codes" }
Expand Down

0 comments on commit 1660323

Please sign in to comment.