From 31fb70214065e5e62a78123dd34dee004db7a51f Mon Sep 17 00:00:00 2001 From: Devin R Date: Thu, 16 Apr 2020 22:07:12 -0400 Subject: [PATCH] room: confirm spec accuracy --- src/models/room.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/room.rs b/src/models/room.rs index e3a93a05..a12405aa 100644 --- a/src/models/room.rs +++ b/src/models/room.rs @@ -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::>(); 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())