Skip to content

Commit de7262a

Browse files
committed
Mark CharSequence.iterator() with operator.
1 parent 3c39328 commit de7262a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/stdlib/src/kotlin/text/Strings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public fun String?.isNullOrBlank(): Boolean = this == null || this.isBlank()
189189
/**
190190
* Iterator for characters of given CharSequence.
191191
*/
192-
public fun CharSequence.iterator(): CharIterator = object : CharIterator() {
192+
public operator fun CharSequence.iterator(): CharIterator = object : CharIterator() {
193193
private var index = 0
194194

195195
public override fun nextChar(): Char = get(index++)

0 commit comments

Comments
 (0)