From afe10053bcae68b95381124a2efe38e5444e88e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Kol=C4=8Din?= Date: Wed, 11 Mar 2026 20:28:28 +0300 Subject: [PATCH] style(docs): minor formatting fixes --- src/table_collection.rs | 5 +---- src/trees/tree.rs | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/table_collection.rs b/src/table_collection.rs index d89ea9805..2c713217b 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 fa6cd1352..cbb463f02 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;