[Solved] Calling macro differently

#1

Hi,

To call a macro we do

vec!

But https://github.com/rust-ndarray/ndarray/blob/master/src/arrayformat.rs#L74,
The format macro is called with out asterisk. How is this valid?

0 Likes

#2

That is not a macro call (you can tell because there is no !). It is calling the function format passed as one of the arguments of format_array.


1 Like