about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2015-04-06 08:14:11 -0700
committerJosh Triplett <josh@joshtriplett.org>2015-04-06 08:14:11 -0700
commit59d889805e7303e862d02f22aba0887ce49975e7 (patch)
tree9051427b9ecc8686925e00e813744f48f2a211d9 /src/test/codegen/stack-alloc-string-slice.rs
parentcf51e55274d6f2eabaf04ff2fc7a6cd61180a0ac (diff)
downloadrust-59d889805e7303e862d02f22aba0887ce49975e7.tar.gz
rust-59d889805e7303e862d02f22aba0887ce49975e7.zip
traits.md: Fix example of using traits to match description
traits.md said:

If we add a `use` line right above `main` and make the right things public,
everything is fine:

However, the use line was actually placed at the top of the file instead.  Move
the use line to right above main.  That also makes the example more evocative
of cases where the module is defined in a separate file.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions