From f5515ff6737072f0c5c68e6b1c5091fa167e2ecd Mon Sep 17 00:00:00 2001 From: Gav Date: Fri, 2 Mar 2018 20:11:16 +0100 Subject: [PATCH] Update docs --- substrate/demo/runtime/src/runtime/council.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/demo/runtime/src/runtime/council.rs b/substrate/demo/runtime/src/runtime/council.rs index 0fefca2a15..07ccb67411 100644 --- a/substrate/demo/runtime/src/runtime/council.rs +++ b/substrate/demo/runtime/src/runtime/council.rs @@ -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) { storage::put(VOTERS, &{ voters.swap_remove(index); voters }); storage::kill(&voter.to_keyed_vec(APPROVALS_OF));