Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

chore: fix some typos (#7518)

crazeteam4f3de4cf54ce
diff --git a/src/platform/linux_desktop_manager.rs b/src/platform/linux_desktop_manager.rs
index b7caa527c..8e8cce95c 100644
--- a/src/platform/linux_desktop_manager.rs
+++ b/src/platform/linux_desktop_manager.rs
@@ -286,7 +286,7 @@ impl DesktopManager {
}
return Ok(i);
}
- bail!("No avaliable display found in range {:?}", display_range)
+ bail!("No available display found in range {:?}", display_range)
}
#[inline]
diff --git a/src/server/display_service.rs b/src/server/display_service.rs
index 3363f6127..6cffeb5a0 100644
--- a/src/server/display_service.rs
+++ b/src/server/display_service.rs
@@ -80,8 +80,8 @@ pub(super) fn check_display_changed(
let lock = SYNC_DISPLAYS.lock().unwrap();
// If plugging out a monitor && lock.displays.get(idx) is None.
// 1. The client version < 1.2.4. The client side has to reconnect.
- // 2. The client version > 1.2.4, The client side can handle the case becuase sync peer info message will be sent.
- // But it is acceptable to for the user to reconnect manually, becuase the monitor is unplugged.
+ // 2. The client version > 1.2.4, The client side can handle the case because sync peer info message will be sent.
+ // But it is acceptable to for the user to reconnect manually, because the monitor is unplugged.
let d = lock.displays.get(idx)?;
if ndisplay != lock.displays.len() {
return Some(d.clone());