]> git.lizzy.rs Git - rust.git/commit
tutorial: hack a code snippet to make it compile.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sun, 9 Mar 2014 01:50:45 +0000 (12:50 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sun, 9 Mar 2014 08:34:40 +0000 (19:34 +1100)
commit6d6e2880d2f1b3e00d28957a5e6f540fcfda2556
tree7f929e33260ae7191bf5b04179666baca51c1d04
parent3c4ff1b872e1d1fd4e905f9a9ac3aeec5397608d
tutorial: hack a code snippet to make it compile.

This is meant to be compiling a crate, but the crate_id attribute seems
to be upsetting it if the attribute is actually on the crate. I.e. this
makes this test compile by putting the crate_id attribute on a function
and so it's ignored. Such a hack. :(
src/doc/tutorial.md