Skip to content

Commit

Permalink
add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Jul 2, 2024
1 parent 51fc171 commit 0468b01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pallets/subtensor/src/uids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ impl<T: Config> Pallet<T> {
SubnetworkN::<T>::get(netuid)
}

/// Returns a callback that sets the element at the given position to zero, doing nothing if the
/// position is out of bounds
fn clear_element_at<N>(position: u16) -> impl Fn(&mut Vec<N>)
where
N: From<u8>,
Expand Down

0 comments on commit 0468b01

Please sign in to comment.