Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
  • Loading branch information
gmlewis committed Oct 13, 2024
1 parent d15d566 commit 123b936
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/arrays/strings.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ pub fn process_strings(strings : Array[String]) -> Array[String] {
strings.eachi(
fn(index, value) {
parts.push(value)
// strings[index] = parts.join("|")
// Yuck! https://github.com/moonbitlang/core/pull/993
strings[index] = String::concat(parts, separator="|")
},
)
Expand Down

0 comments on commit 123b936

Please sign in to comment.