room: confirm spec accuracy

This commit is contained in:
Devin R 2020-04-16 22:07:12 -04:00
parent ebe4f03c36
commit 31fb702140

View file

@ -146,6 +146,7 @@ impl RoomName {
} else if heroes < (joined + invited - one) && invited + joined > one {
let mut names = self.heroes.iter().take(3).cloned().collect::<Vec<String>>();
names.sort();
// TODO what is the length the spec wants us to use here and in the `else`
format!("{}, and {} others", names.join(", "), (joined + invited))
} else {
format!("Empty Room (was {} others)", members.len())