about summary refs log tree commit diff
path: root/src/doc/complement-cheatsheet.md
AgeCommit message (Collapse)AuthorLines
2014-06-24Remove the cheat sheet.Steve Klabnik-280/+0
Rust by Example is far better. Fixes #14380.
2014-06-18Deprecate the bytes!() macro.Simon Sapin-1/+1
Replace its usage with byte string literals, except in `bytes!()` tests. Also add a new snapshot, to be able to use the new b"foo" syntax. The src/etc/2014-06-rewrite-bytes-macros.py script automatically rewrites `bytes!()` invocations into byte string literals. Pass it filenames as arguments to generate a diff that you can inspect, or `--apply` followed by filenames to apply the changes in place. Diffs can be piped into `tip` or `pygmentize -l diff` for coloring.
2014-06-06Change to_str().to_string() to just to_str()Adolfo Ochagavía-1/+1
2014-06-02docs: Stop using `notrust`Florian Gilcher-1/+1
Now that rustdoc understands proper language tags as the code not being Rust, we can tag everything properly. This change tags examples in other languages by their language. Plain notations are marked as `text`. Console examples are marked as `console`. Also fix markdown.rs to not highlight non-rust code.
2014-06-01auto merge of #14578 : huonw/rust/as_slice-cheatsheet, r=sfacklerbors-0/+18
doc: add an `.as_slice` example to the cheatsheet. A lot of questions about this on IRC and stackoverflow.
2014-05-31doc: Fix a number of broken linksAlex Crichton-18/+19
cc #14515
2014-06-01doc: add an `.as_slice` example to the cheatsheet.Huon Wilson-0/+18
A lot of questions about this on IRC and stackoverflow.
2014-05-30Remove deprecated owned vector from complement cheatsheet.Jonathan Reem-5/+4
2014-05-28std: Remove format_strbuf!()Alex Crichton-5/+5
This was only ever a transitionary macro.
2014-05-27std: Rename strbuf operations to stringRicho Healey-4/+4
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-9/+9
[breaking-change]
2014-05-22auto merge of #14348 : alexcrichton/rust/doc.rust-lang.org, r=huonwbors-12/+28
2014-05-22libcore: Remove all uses of `~str` from `libcore`.Patrick Walton-2/+2
[breaking-change]
2014-05-21Change static.rust-lang.org to doc.rust-lang.orgAlex Crichton-12/+28
The new documentation site has shorter urls, gzip'd content, and index.html redirecting functionality.
2014-05-16doc: Remove all uses of `~str` from the documentation.Patrick Walton-12/+13
2014-05-14Change str::from_utf8_owned() to return ResultKevin Ballard-1/+1
This allows the original vector to be recovered in the event that it is not valid UTF-8. [breaking-change]
2014-05-03rustdoc: Migrate from sundown to hoedownAlex Crichton-2/+2
This primary fix brought on by this upgrade is the proper matching of the ``` and ~~~ doc blocks. This also moves hoedown to a git submodule rather than a bundled repository. Additionally, hoedown is stricter about code blocks, so this ended up fixing a lot of invalid code blocks (ending with " ```" instead of "```", or ending with "~~~~" instead of "~~~"). Closes #12776
2014-04-25Update FFI signature table to use pipe formatJohn Fresco-6/+6
Rustdoc doesn't seem like it's converting the old format to a table as we can see here: http://static.rust-lang.org/doc/master/complement-cheatsheet.html#ffi-(foreign-function-interface) This new format should fix that and it's also rendered by Github's markdown preview.
2014-04-20Fix spelling mistakes in documentation and code.Joseph Crail-1/+1
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-2/+2
2014-04-08Register new snapshotsAlex Crichton-1/+1
2014-04-06De-~[] Mem{Reader,Writer}Steven Fackler-1/+1
2014-02-23Fix C function FFI example in the Rust cheatsheetTobias Bucher-1/+1
2014-02-22Reduce reliance on `to_str_radix`Brendan Zabarauskas-4/+5
This is in preparation to remove the implementations of ToStrRadix in integers, and to remove the associated logic from `std::num::strconv`. The parts that still need to be liberated are: - `std::fmt::Formatter::runplural` - `num::{bigint, complex, rational}`
2014-02-11Added examples for converting vectors of u8 into strings. Also fixed some ↵WebeWizard-2/+32
styling
2014-02-02Move doc/ to src/doc/Alex Crichton-0/+214
We generate documentation into the doc/ directory, so we shouldn't be intermingling source files with generated files