You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In your closed pull request, you can simply correct not only the spelling, but also the tests themselves.
Just run cargo test --doc after correcting the spelling and the compiler will show you which tests need to be corrected. Unfortunately rustdoc only seems to point to the start line of the test, something like this:
Go to line 10 inside the test, i.e. assert_eq!(map["ponyland"], 9); and change 9 to 8, i.e. assert_eq!(map["ponyland"], 8);
The numbering doesn't converge because rustdoc wraps the body of the function (which you actually see above) into a real test function like the one below. Honestly, I don't remember the exact wrapping rule, see rustdoc.
The length of the correct spelling is also less, so char count test results will need to be adjusted.
https://github.com/rust-lang/hashbrown/blob/master/src/map.rs#L1294 and onward,
The text was updated successfully, but these errors were encountered: