From 24baf1fe0f52f2177355c53d48e57773cb095496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 21 Jul 2020 13:04:51 +0200 Subject: [PATCH] crypto: More doc fixes. --- matrix_sdk_crypto/src/olm/session.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/matrix_sdk_crypto/src/olm/session.rs b/matrix_sdk_crypto/src/olm/session.rs index ec64e833a..d6b11de87 100644 --- a/matrix_sdk_crypto/src/olm/session.rs +++ b/matrix_sdk_crypto/src/olm/session.rs @@ -96,6 +96,16 @@ impl Session { /// Encrypt the given event content content as an m.room.encrypted event /// content. + /// + /// # Arguments + /// + /// * `recipient_device` - The device for which this message is going to be + /// encrypted, this needs to be the device that was used to create this + /// session with. + /// + /// * `event_type` - The type of the event. + /// + /// * `content` - The content of the event. pub async fn encrypt( &mut self, recipient_device: &Device,