Skip to content

Commit 492f53c

Browse files
committed
chore: add some comments
Signed-off-by: Jack Cherng <[email protected]>
1 parent 8bee227 commit 492f53c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Renderer/Html/LineRenderer/Word.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function render(MbString $mbOld, MbString $mbNew): LineRendererInterface
5858
// insert dummy HTML closure to make sure there are always
5959
// the same amounts of HTML closures in $oldWords and $newWords
6060
// thus, this should ensure that "wordGlues" works correctly
61+
// @see https://github.com/jfcherng/php-diff/pull/25
6162
foreach (ReverseIterator::fromArray($dummyDelIdxes) as $idx) {
6263
\array_splice($oldWords, $idx, 0, [$dummyHtmlClosure]);
6364
}

0 commit comments

Comments
 (0)