Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hw01: 2nd param of filter function #10

Open
le-n-qui opened this issue Dec 13, 2019 · 0 comments
Open

hw01: 2nd param of filter function #10

le-n-qui opened this issue Dec 13, 2019 · 0 comments

Comments

@le-n-qui
Copy link

I have been studying Rust programming lately, and come across this wonderful resource from cis198-2016f. Currently, I am using Rust 1.38. When I try to compile problem1.rs, there is a problem with the second parameter of filter function. Rust has changed a lot since 2016, and I want to bring attention to this issue. What I decided to do was to change the parameter with function pointer fn (I read about this in section 19.4 of the online Rust programming book). Maybe function pointer would be the right replacement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant