Fix comment in Window.initialize()

This commit is contained in:
Ben Buhse 2026-03-31 17:12:29 -05:00
commit 6f6d173104
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4

View file

@ -249,7 +249,7 @@ fn windowListener(river_window_v1: *river.WindowV1, event: river.WindowV1.Event,
/// rules are reflected in the first frame's layout. /// rules are reflected in the first frame's layout.
pub fn initialize(window: *Window) void { pub fn initialize(window: *Window) void {
if (window.initialized) { if (window.initialized) {
// This branch should only reach once per window, // We only need to initialize once per window,
// but the method is called on every layout calculation. // but the method is called on every layout calculation.
@branchHint(.likely); @branchHint(.likely);
return; return;