diff --git a/src/table_collection.rs b/src/table_collection.rs index f4bab553..bc0f1872 100644 --- a/src/table_collection.rs +++ b/src/table_collection.rs @@ -83,7 +83,7 @@ impl TableCollection { /// /// Negative sequence lengths are errors: /// - /// ```{should_panic} + /// ```should_panic /// let tables = tskit::TableCollection::new(-55.0).unwrap(); /// ``` pub fn new>(sequence_length: P) -> Result { diff --git a/src/trees/treeseq.rs b/src/trees/treeseq.rs index 4da18ec1..9c761655 100644 --- a/src/trees/treeseq.rs +++ b/src/trees/treeseq.rs @@ -220,7 +220,7 @@ impl TreeSequence { /// /// A `Tree`'s lifetime is tied to that of its tree sequence: /// - /// ```{compile_fail} + /// ```compile_fail /// # use streaming_iterator::StreamingIterator; /// # use streaming_iterator::DoubleEndedStreamingIterator; /// # let mut tables = tskit::TableCollection::new(1000.).unwrap();