Skip to content

Commit

Permalink
fix: accurate comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuahp committed May 26, 2024
1 parent 11c5c06 commit c873f98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ interface BaseReplacer {


fun List<String>.mixin(provider: suspend (Int) -> Token) = buildList {
// ["Token1", "Token2", "Token3"] -> ["Token1", provider(1), "Token2", provider(2), "Token3"]
// ["text1", "text2", "text3"] -> [Token1, provider(0), Token2, provider(1), Token3]
for (index in 0..(this@mixin.size * 2 - 2)) {
if (index % 2 == 0) add(Token(this@mixin[index / 2]))
else add(runBlocking { provider((index - 1) / 2) })
Expand Down

0 comments on commit c873f98

Please sign in to comment.