diff --git a/src/fw/applib/graphics/text_layout.c b/src/fw/applib/graphics/text_layout.c index f9005aca..f0abbed1 100644 --- a/src/fw/applib/graphics/text_layout.c +++ b/src/fw/applib/graphics/text_layout.c @@ -791,7 +791,7 @@ static inline void prv_walk_lines_down(Iterator* const line_iter, TextLayout* co const Word word_before_rendering = *current_word_ref; const OrphanLineState orphan_state = prv_capture_orphan_state(line); - // When repeating text to prevent orhpans we could run into the situation where repeating text + // When repeating text to prevent orphans we could run into the situation where repeating text // pushes down the remaining text far enough so it ends up on yet another page. This would // enter an infinite loop. // To avoid that, we only apply this strategy, when it's "safe" to do so (in theory, there's diff --git a/tests/fw/graphics/test_graphics_draw_text_flow.c b/tests/fw/graphics/test_graphics_draw_text_flow.c index 677a7c49..3e17a674 100644 --- a/tests/fw/graphics/test_graphics_draw_text_flow.c +++ b/tests/fw/graphics/test_graphics_draw_text_flow.c @@ -426,7 +426,7 @@ void test_graphics_draw_text_flow__no_infinite_loop(void) { .perimeter.impl = &(GPerimeter){.callback = perimeter_for_display_rect}, }, }; - char text[] = "Prevent orhpans for tall-enough pages."; + char text[] = "Prevent orphans for tall-enough pages."; const int16_t line_height = 22; // some more pixels to show that orphan prevention really only applies if there's enough space // for enough *full* lines