Uh oh!
There was an error while loading. Please reload this page.
doc: use of the import should be implied - #25629
Conversation
rust-highfive
commented
May 19, 2015
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
Gankra
commented
May 20, 2015
I'm not familiar with this as a convention, but I think it's a good idea. Not willing to make a call on it, personally. |
steveklabnik
commented
May 20, 2015
I actually prefer for this stuff to be shown as much as possible, honestly. Lots of people copy/paste/run, and then it doesn't work. |
tshepang
commented
May 20, 2015
I see this approach a lot in Python documentation. BTW, we don't display the The copy/pasting thing is easily fixed by good error messages :) |
bors
commented
May 24, 2015
☔ The latest upstream changes (presumably #25666) made this pull request unmergeable. Please resolve the merge conflicts. |
tshepang
commented
May 24, 2015
Maybe if I add a note that |
steveklabnik
commented
Jun 8, 2015
I think that this deserves a discussion on what the official style is before it gets merged. As such, let's close this for now. @tshepang , maybe write up a small RFC? |
tshepang
commented
Jun 8, 2015
good idea, especially because displaying |
The import is shown on the first example, and that should be enough.
It looks noisy otherwise, especially given the tiny examples.