chore: fix some typos in comments (#7752)

Signed-off-by: writegr <wellweek@outlook.com>
This commit is contained in:
writegr
2024-04-18 14:39:38 +08:00
committed by GitHub
parent 4252b5e273
commit 9b2ec62be9
4 changed files with 4 additions and 4 deletions

View File

@@ -277,7 +277,7 @@ impl DesktopManager {
}
}
// The logic mainly fron https://github.com/neutrinolabs/xrdp/blob/34fe9b60ebaea59e8814bbc3ca5383cabaa1b869/sesman/session.c#L334.
// The logic mainly from https://github.com/neutrinolabs/xrdp/blob/34fe9b60ebaea59e8814bbc3ca5383cabaa1b869/sesman/session.c#L334.
fn get_avail_display() -> ResultType<u32> {
let display_range = 0..51;
for i in display_range.clone() {

View File

@@ -1874,7 +1874,7 @@ pub fn current_resolution(name: &str) -> ResultType<Resolution> {
dm.dmSize = std::mem::size_of::<DEVMODEW>() as _;
if EnumDisplaySettingsW(device_name.as_ptr(), ENUM_CURRENT_SETTINGS, &mut dm) == 0 {
bail!(
"failed to get currrent resolution, error {}",
"failed to get current resolution, error {}",
io::Error::last_os_error()
);
}