[rust-dev] Rust's documentation is about to drastically improve
corey at octayn.net
Wed Jun 18 09:28:17 PDT 2014
We already compile and run all examples in the docs as part of the testsuite.
On Wed, Jun 18, 2014 at 9:27 AM, Matthieu Monrocq
<matthieu.monrocq at gmail.com> wrote:
> On Wed, Jun 18, 2014 at 6:22 PM, Steve Klabnik <steve at steveklabnik.com>
>> > In case of trivial entities
>> The problem with this is what's trivial to you isn't trivial to someone
>> > think about the amount of update this may make necessary in case Rust
>> > language syntax changes.
>> Literally my job. ;) Luckily, the syntax has been pretty stable
>> lately, and most changes have just been mechanical.
> If you could, it would be awesome to invest in a check that the provided
> examples compile with the current release of the compiler (possibly as part
> of the documentation generation).
> This not only guarantees that the examples are up-to-date, but also helps in
> locating out-dated examples.
> On the other hand, this may require more boilerplate to get self-contained
> examples (that can actually be compiled), so YMMV.
> -- Matthieu
>> Rust-dev mailing list
>> Rust-dev at mozilla.org
> Rust-dev mailing list
> Rust-dev at mozilla.org
More information about the Rust-dev