use slice for option_vec_printer
This commit is contained in:
parent
3521ff3a13
commit
95fb39715f
@ -300,7 +300,7 @@ fn newtons_method(
|
||||
}
|
||||
|
||||
/// Inputs `Vec<Option<T>>` and outputs a `String` containing a pretty representation of the Vector
|
||||
pub fn option_vec_printer<T: ToString>(data: &Vec<Option<T>>) -> String
|
||||
pub fn option_vec_printer<T: ToString>(data: &[Option<T>]) -> String
|
||||
where
|
||||
T: ToString,
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user