Skip to content

Commit bd7185e

Browse files
authored
Merge pull request #45 from molpopgen/documentation
Documentation
2 parents 56eaf87 + 2400906 commit bd7185e

File tree

4 files changed

+233
-10
lines changed

4 files changed

+233
-10
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub enum TskitError {
1414
#[error("Invalid index")]
1515
IndexError,
1616
/// Raised when samples are requested from
17-
/// [`Tree`] objects, but sample lists are
17+
/// [`crate::Tree`] objects, but sample lists are
1818
/// not being updated.
1919
#[error("Not tracking samples in Trees")]
2020
NotTrackingSamples,

src/ffi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ pub trait TskitTypeAccess<T> {
88
fn as_mut_ptr(&mut self) -> *mut T;
99
}
1010

11+
/// Indexable, iterable wrapper around C
12+
/// arrays.
1113
#[derive(Copy, Clone)]
1214
pub(crate) struct WrappedTskArray<T> {
1315
array: T,

src/table_collection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ impl TableCollection {
185185
population: tsk_id_t,
186186
individual: tsk_id_t,
187187
) -> TskReturnValue {
188-
self.add_node_witha_metadata(flags, time, population, individual, None)
188+
self.add_node_with_metadata(flags, time, population, individual, None)
189189
}
190190

191191
/// Add a row with metadata to the node table
192-
pub fn add_node_witha_metadata(
192+
pub fn add_node_with_metadata(
193193
&mut self,
194194
flags: ll_bindings::tsk_flags_t,
195195
time: f64,

0 commit comments

Comments
 (0)