diff --git a/src/table_collection.rs b/src/table_collection.rs index d89ea980..2c713217 100644 --- a/src/table_collection.rs +++ b/src/table_collection.rs @@ -49,7 +49,6 @@ use ll_bindings::tsk_size_t; /// # Examples /// /// ``` -/// /// let mut tables = tskit::TableCollection::new(100.).unwrap(); /// assert_eq!(tables.sequence_length(), 100.); /// @@ -235,7 +234,6 @@ impl TableCollection { /// /// ``` /// # let mut tables = tskit::TableCollection::new(100.).unwrap(); - /// /// // left, right, parent, child /// match tables.add_edge(0., 53., 1, 11) { /// // This is the first edge, so its id will be @@ -379,7 +377,6 @@ impl TableCollection { /// /// ``` /// # #[cfg(feature = "derive")] { - /// /// # let mut tables = tskit::TableCollection::new(100.).unwrap(); /// # #[derive(serde::Serialize, serde::Deserialize, tskit::metadata::IndividualMetadata)] /// # #[serializer("serde_json")] @@ -764,7 +761,7 @@ impl TableCollection { } } - /// Sort the tables. + /// Sort the tables. /// The [``bookmark``](crate::types::Bookmark) can /// be used to affect where sorting starts from for each table. /// diff --git a/src/trees/tree.rs b/src/trees/tree.rs index fa6cd135..cbb463f0 100644 --- a/src/trees/tree.rs +++ b/src/trees/tree.rs @@ -77,7 +77,7 @@ impl<'treeseq> Tree<'treeseq> { /// # Failing examples /// - /// An error will be returned if ['TreeFlags::SAMPLE_LISTS`](crate::TreeFlags::SAMPLE_LISTS) is not used: + /// An error will be returned if [`TreeFlags::SAMPLE_LISTS`] is not used: /// /// ```should_panic /// use tskit::StreamingIterator; @@ -337,7 +337,7 @@ impl<'treeseq> Tree<'treeseq> { /// # Failing examples /// - /// An error will be returned if ['TreeFlags::SAMPLE_LISTS`](crate::TreeFlags::SAMPLE_LISTS) is not used: + /// An error will be returned if [`TreeFlags::SAMPLE_LISTS`] is not used: /// /// ```should_panic /// use tskit::StreamingIterator; @@ -371,7 +371,7 @@ impl<'treeseq> Tree<'treeseq> { /// # Failing examples /// - /// An error will be returned if ['TreeFlags::SAMPLE_LISTS`](crate::TreeFlags::SAMPLE_LISTS) is not used: + /// An error will be returned if [`TreeFlags::SAMPLE_LISTS`] is not used: /// /// ```should_panic /// use tskit::StreamingIterator; @@ -405,7 +405,7 @@ impl<'treeseq> Tree<'treeseq> { /// # Failing examples /// - /// An error will be returned if ['TreeFlags::SAMPLE_LISTS`](crate::TreeFlags::SAMPLE_LISTS) is not used: + /// An error will be returned if [`TreeFlags::SAMPLE_LISTS`] is not used: /// /// ```should_panic /// use tskit::StreamingIterator;