Skip to content

Commit

Permalink
fix missing parameters in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
surakin committed Mar 17, 2024
1 parent 7a7546e commit e21a0d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/matrix-sdk/src/attachment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ impl Default for AttachmentConfig {
/// if let Some(room) = client.get_room(&room_id) {
/// room.send_attachment(
/// "My favorite cat",
/// None,
/// "my_favorite_cat.jpg",
/// &mime::IMAGE_JPEG,
/// image,
/// config,
Expand Down
2 changes: 2 additions & 0 deletions crates/matrix-sdk/src/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,8 @@ impl Room {
/// if let Some(room) = client.get_room(&room_id) {
/// room.send_attachment(
/// "My favorite cat",
/// None,
/// "my_favorite_cat.jpg",
/// &mime::IMAGE_JPEG,
/// image,
/// AttachmentConfig::new(),
Expand Down

0 comments on commit e21a0d2

Please sign in to comment.