chore: fix some typos (#7518)

Signed-off-by: crazeteam <lilujing@outlook.com>
This commit is contained in:
crazeteam
2024-03-27 01:08:56 +08:00
committed by GitHub
parent 85f387bfb9
commit 4f3de4cf54
2 changed files with 3 additions and 3 deletions

View File

@@ -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());