Improve docs

This commit is contained in:
Andras Schmelczer 2025-07-06 13:07:26 +01:00
parent 78fe3fd6fd
commit a2119b0f32
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 4 additions and 5 deletions

View file

@ -150,7 +150,6 @@ where
let result = operation.merge_operations(&mut last_other_op);
if let ref op @ (Operation::Insert { .. } | Operation::Equal { .. }) = result {
// Calculate shift using safe casts - preserving original logic
let merged_length_signed =
isize::try_from(merged_length).unwrap_or(isize::MAX);
let seen_left_length_signed =
@ -184,7 +183,6 @@ where
let result = operation.merge_operations(&mut last_other_op);
if let ref op @ (Operation::Insert { .. } | Operation::Equal { .. }) = result {
// Calculate shift using safe casts - preserving original logic
let merged_length_signed =
isize::try_from(merged_length).unwrap_or(isize::MAX);
let seen_right_length_signed =