[fractal] misc: Fix comments and docs
- From: Kévin Commaille <kcommaille src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] misc: Fix comments and docs
- Date: Sun, 2 Oct 2022 15:23:50 +0000 (UTC)
commit 4ffcdf1909ef0f2c14e43be767a4012f6c6cf7ad
Author: Kévin Commaille <zecakeh tedomum fr>
Date: Wed Sep 28 16:47:27 2022 +0200
misc: Fix comments and docs
src/session/room/event_actions.rs | 2 +-
src/session/verification/identity_verification.rs | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/session/room/event_actions.rs b/src/session/room/event_actions.rs
index 0e2fb165f..debb7e607 100644
--- a/src/session/room/event_actions.rs
+++ b/src/session/room/event_actions.rs
@@ -13,7 +13,7 @@ use crate::{
spawn, spawn_tokio, toast, UserFacingError, Window,
};
-// This is only save because the trait `EventActions` can
+// This is only safe because the trait `EventActions` can
// only be implemented on `gtk::Widgets` that run only on the main thread
struct MenuModelSendSync(gio::MenuModel);
#[allow(clippy::non_send_fields_in_send_ty)]
diff --git a/src/session/verification/identity_verification.rs
b/src/session/verification/identity_verification.rs
index 6be386e10..023a15111 100644
--- a/src/session/verification/identity_verification.rs
+++ b/src/session/verification/identity_verification.rs
@@ -395,10 +395,10 @@ impl IdentityVerification {
.expect("Failed to create IdentityVerification")
}
- /// Creates and send a new verification request
+ /// Creates and send a new verification request.
///
/// If `User` is `None` a new session verification is started for our own
- /// user and send to other devices
+ /// user and send to other devices.
pub async fn create(session: &Session, user: Option<&User>) -> Self {
let user = if let Some(user) = user {
user
@@ -509,8 +509,9 @@ impl IdentityVerification {
}
/// Force that this `IdentityVerification` is considered a
- /// `Mode::CurrentSession`. This is usfull that incoming requests during
- /// setup are accepted directly.
+ /// `Mode::CurrentSession`.
+ ///
+ /// This is used during setup to accept incoming requests automatically.
pub fn set_force_current_session(&self, force: bool) {
if self.force_current_session() == force {
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]