feat(core): fix repetitive words in comments and some typos.
What changed, and why it matters
This commit only fixes typos and duplicated words in code comments. No actual program code was changed, so it cannot affect device behavior or introduce security issues.
No security action needed. This is a documentation/comment cleanup change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies three C header files, changing only comment text: removing duplicated words (‘to to’ -> ‘to’, ‘the the’ -> ‘the’, ‘that that’ -> ‘that’), correcting ‘tge’ to ‘the’, and fixing ‘Synchroneous’ to ‘Synchronous’. No executable code, macros, data structures, or logic were altered.
Changed components
core/embed/io/display/inc/io/display.hcore/embed/io/power_manager/inc/io/pmic.hcore/embed/rtl/inc/rtl/sizedefs.hInspect captured patch +5 / −5
diff --git a/core/embed/io/display/inc/io/display.h b/core/embed/io/display/inc/io/display.h
index 4415b73f..3b0aa10f 100644
--- a/core/embed/io/display/inc/io/display.h
+++ b/core/embed/io/display/inc/io/display.h
@@ -157,7 +157,7 @@ void display_refresh(void);
// Following functions define display's bitblt interface.
//
-// These functions draw directly to to display or to the
+// These functions draw directly to the display or to the
// currently inactive framebuffer.
//
// bb->dst_row and bb->dst_stride must be 0
diff --git a/core/embed/io/power_manager/inc/io/pmic.h b/core/embed/io/power_manager/inc/io/pmic.h
index 392cd7ac..c200db98 100644
--- a/core/embed/io/power_manager/inc/io/pmic.h
+++ b/core/embed/io/power_manager/inc/io/pmic.h
@@ -88,7 +88,7 @@ uint8_t pmic_restart_cause(void);
// Switches the device to ship mode.
//
-// In tge ship mode, the CPU is powered off, and only the VBAT domain remains
+// In the ship mode, the CPU is powered off, and only the VBAT domain remains
// active. The device can be woken by pressing the power button, triggering
// a full boot sequence.
//
@@ -110,10 +110,10 @@ bool pmic_enter_shipmode(void);
//
// The function returns `false` if the measurement cannot be started
// (e.g. because the previous measurement is still in progress or
-// the the driver is not initialized).
+// the driver is not initialized).
bool pmic_measure(pmic_report_callback_t callback, void* context);
-// Synchroneous version of the `pmic_measure` function.
+// Synchronous version of the `pmic_measure` function.
//
// Use only for testing purposes, as it blocks the execution until
// the measurement is done.
diff --git a/core/embed/rtl/inc/rtl/sizedefs.h b/core/embed/rtl/inc/rtl/sizedefs.h
index 15c0f032..cf209c04 100644
--- a/core/embed/rtl/inc/rtl/sizedefs.h
+++ b/core/embed/rtl/inc/rtl/sizedefs.h
@@ -59,7 +59,7 @@
(((addr) & ((align) - 1)) == 0); \
})
-// Ensures that that 'addr' is properly aligned to 'align', which
+// Ensures that 'addr' is properly aligned to 'align', which
// must be a power of two.
#define ENSURE_ALIGNMENT(addr, align) \
_Static_assert(IS_ALIGNED(addr, align), "Address must be aligned")
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.