What does this line mean

fn myfuncname(_: &str) -> 
{
    // Your code
}

hello, what does the "_:" in this line mean? I haven't encountered such a use or argument before, what does it mean?

It's the wildcard pattern that matches and ignores any value.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.