Skip to content
Snippets Groups Projects
Commit f5515ff6 authored by Gav's avatar Gav
Browse files

Update docs

parent c298331c
Branches
No related merge requests found
......@@ -462,7 +462,7 @@ pub mod internal {
}
}
/// Remove a voter from the system. Will panic if voters()[index] != voter.
/// Remove a voter from the system. Trusts that voters()[index] != voter.
fn remove_voter(voter: &AccountId, index: usize, mut voters: Vec<AccountId>) {
storage::put(VOTERS, &{ voters.swap_remove(index); voters });
storage::kill(&voter.to_keyed_vec(APPROVALS_OF));
......
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