Commit 7952e171 authored by NOEL Philippe's avatar NOEL Philippe

correct error in get_atom_index

parent 289c78fd
...@@ -204,11 +204,11 @@ impl<'a> Protein { ...@@ -204,11 +204,11 @@ impl<'a> Protein {
/// ``` /// ```
/// use pdbparser; /// use pdbparser;
/// ///
/// let my_prot = pdbparser::open_pdb_file("src/tests/f2_adn.pdb"); /// let my_prot = pdbparser::parse_pdb("src/tests_file/f2_adn.pdb");
/// let atom_index = my_prot.get_atom_index(); /// let atom_index = my_prot.get_atom_index();
/// ///
/// assert_eq!(atom_index.next(), 1); /// assert_eq!(atom_index[0], 1);
/// assert_eq!(atom_index.next(), 2); /// assert_eq!(atom_index[1], 2);
/// ///
/// ``` /// ```
pub fn get_atom_index(&self) -> Vec<u64> { pub fn get_atom_index(&self) -> Vec<u64> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment