-
Notifications
You must be signed in to change notification settings - Fork 35
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
Example is missing a generic #23
Comments
While I like including explicit information, This information is already stated a line previously.
furthermore, it distracts from the objective of the article. |
Hey all! Thank you both for looking into this. Indeed, the text mentions However, I agree the suggested change would be an improvement! Having both the current text and I read this really great blog post once about writing technical books. Can't find the original link (will share if I find it later) but the advice was something like "always go for clear over clever, if it's not clear then it can't be clever". Here omitting How about making the suggested change to the first 2 code blocks containing IMO the last block containing |
Hey, sorry for the super late reply. I will look into creating a PR for this today! |
Hello! I'm looking at https://highassurance.rs/chp7/traits.html#the-map-get-api.
The example with the
get
is never introducing the second generics K and V in the code example.I think a better example would be:
to show where the generic for BTreeMap are introduced. There is a mention of
BTreeMap<K, V>
but in my opinion I think it's easily missed and this would illustrate how the generics from the impl are used.The text was updated successfully, but these errors were encountered: