aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2021-06-06 23:17:39 +0200
committerEskil Queseth <eskilq@kth.se>2021-06-06 23:17:39 +0200
commit55a12fbdfb435886b2f211fe1fb00daafb32b6a7 (patch)
tree3bd64125fcad8fec0d8aef3c9278daffdc9f9ad1 /mumd/src/state
parent8f5acbc7e7fc3652f5321a31be351221542faf80 (diff)
downloadmum-55a12fbdfb435886b2f211fe1fb00daafb32b6a7.tar.gz
unhide doctests
Diffstat (limited to 'mumd/src/state')
-rw-r--r--mumd/src/state/server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/state/server.rs b/mumd/src/state/server.rs
index e44d1e8..78a10b9 100644
--- a/mumd/src/state/server.rs
+++ b/mumd/src/state/server.rs
@@ -92,7 +92,7 @@ impl Server {
/// Takes a channel name and returns either a tuple with the channel id and a reference to the
/// channel struct if the channel name unambiguosly refers to a channel, or an error describing
/// if the channel identifier was ambigous or invalid.
- /*/// note that doctests currently aren't run in binary crates yet (see #50784)
+ /// note that doctests currently aren't run in binary crates yet (see #50784)
/// ```
/// use crate::state::channel::Channel;
/// let mut server = Server::new();
@@ -102,7 +102,7 @@ impl Server {
/// };
/// server.channels.insert(0, channel.clone);
/// assert_eq!(server.channel_name("Foobar"), Ok((0, &channel)));
- /// ```*/
+ /// ```
pub fn channel_name(&self, channel_name: &str) -> Result<(u32, &Channel), ChannelIdentifierError> {
let matches = self.channels
.iter()