events: Fix comment

This commit is contained in:
Jonas Platte 2022-04-06 14:59:26 +02:00 committed by Jonas Platte
parent 649da9c5b8
commit c3756aafc5

View File

@ -142,8 +142,8 @@ pub struct RoomPowerLevelsEventContent {
impl RoomPowerLevelsEventContent { impl RoomPowerLevelsEventContent {
/// Creates a new `RoomPowerLevelsEventContent` with all-default values. /// Creates a new `RoomPowerLevelsEventContent` with all-default values.
pub fn new() -> Self { pub fn new() -> Self {
// events_default and users_default having a default of 0 while the others have a default // events_default, users_default and invite having a default of 0 while the others have a
// of 50 is not an oversight, these defaults are from the Matrix specification. // default of 50 is not an oversight, these defaults are from the Matrix specification.
Self { Self {
ban: default_power_level(), ban: default_power_level(),
events: BTreeMap::new(), events: BTreeMap::new(),