1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibDebug: Fix typo in DebugInfo::get_source_position

This commit is contained in:
Itamar 2021-06-11 14:38:09 +03:00 committed by Andreas Kling
parent 3c3a1726df
commit 68ff0788e5

View file

@ -128,7 +128,7 @@ Optional<DebugInfo::SourcePosition> DebugInfo::get_source_position(u32 target_ad
if (target_address < m_sorted_lines[0].address)
return {};
// TODO: We can do a binray search here
// TODO: We can do a binary search here
for (size_t i = 0; i < m_sorted_lines.size() - 1; ++i) {
if (m_sorted_lines[i + 1].address > target_address) {
return SourcePosition::from_line_info(m_sorted_lines[i]);