Skip to content

Commit

Permalink
fix source/diff part2 & part3
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreess authored and peter-jerry-ye committed Dec 16, 2024
1 parent 8293f97 commit dc27cf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next/sources/diff/src/part2/edit.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn pprint_diff(diff : Array[Edit]) -> String {
buf.write_string(pprint_edit(diff[i - 1]))
buf.write_char('\n')
} else {
buf.to_unchecked_string()
buf.contents().to_unchecked_string()
}
}
// end pprint definition
2 changes: 1 addition & 1 deletion next/sources/diff/src/part3/edit.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn pprint_diff(diff : Array[Edit]) -> String {
buf.write_string(pprint_edit(diff[i]))
buf.write_char('\n')
} else {
buf.to_unchecked_string()
buf.contents().to_unchecked_string()
}
}
// end pprint definition

0 comments on commit dc27cf5

Please sign in to comment.