about summary refs log tree commit diff
path: root/doc
AgeCommit message (Collapse)AuthorLines
2014-01-17doc: fix rust.md falloutAdrien Tétar-21/+25
2014-01-17Elaborate manual on matching (dereference patterns, lvalue/rvalue matching)Edward Z. Yang-2/+20
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2014-01-17Fixup in guide-testing.mdPetter Remen-2/+2
Added back-quotes around #[cfg(test)] which was otherwise being interpreted as starting a header
2014-01-17Tweak the interface of std::ioAlex Crichton-29/+22
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
2014-01-17Add a generic power functionFlavio Percoco-2/+2
The patch adds a `pow` function for types implementing `One`, `Mul` and `Clone` trait. The patch also renames f32 and f64 pow into powf in order to still have a way to easily have float powers. It uses llvms intrinsics. The pow implementation for all num types uses the exponentiation by square. Fixes bug #11499
2014-01-16auto merge of #11584 : alexcrichton/rust/issue-3862, r=brsonbors-5/+17
Turns out there is no documentation of a block expression in the rust manual currently! I deleted the "record expressions" section to make room for a "block expressions" section. Closes #3862
2014-01-16Document blocks and use statements a little moreAlex Crichton-5/+17
Closes #3862
2014-01-15doc: add note below diagram about memory layout.Div Shekhar-0/+5
2014-01-15doc: Boxes diagram shows enum value inside box.Div Shekhar-4/+4
2014-01-15Update docs index to use listsa_m0d-29/+31
Also include a missing link to the rustdoc manual
2014-01-15Fix formatting in rust-guide document.a_m0d-1/+1
2014-01-14Note that translation workflow is WIP now.OGINO Masanori-3/+6
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-14Add notes for translators.OGINO Masanori-0/+43
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-14Update .po and strip down untranslated entries.OGINO Masanori-12995/+3659
This work is done by execute these commands manually: $ po4a --copyright-holder="The Rust Project Developers" \ --package-name="Rust" \ --package-version="0.10-pre" \ -M UTF-8 -L UTF-8 \ doc/po4a.conf $ for f in doc/po/**/*.po; do > msgattrib --translated $f -o $f.strip > if [ -e $f.strip ]; then > mv $f.strip $f > else > rm $f > fi > done It should be managed by the build system automatically to use in our translation workflow, but I've not yet done that. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-13auto merge of #11501 : alexcrichton/rust/dox, r=brsonbors-1/+267
The official documentation sorely needs an explanation of the rust runtime and what it is exactly, and I want this guide to provide that information. I'm unsure of whether I've been too light on some topics while too heavy on others. I also feel like a few things are still missing. As always, feedback is appreciated, especially about things you'd like to see written about!
2014-01-13dox: Write a guide to the rust runtimeAlex Crichton-1/+267
2014-01-13librustc: Remove `@` pointer patterns from the languagePatrick Walton-7/+7
2014-01-12Update guide-ffi.mdMatthias Einwag-98/+60
Simplified the first examples to demonstrate callbacks without other threads involved and shortened the elaboration about async callbacks.
2014-01-11auto merge of #11491 : wting/rust/wting_7959_document_inline_attributes, ↵bors-6/+28
r=alexcrichton Closes #7959.
2014-01-11Add inline attributes documentation.William Ting-6/+28
Closes #7959.
2014-01-11Add librustuv to doc/index.mdKevin Ballard-0/+1
2014-01-11Restore missing line breaks in doc/index.htmlKevin Ballard-19/+19
a30d61b05a removed all of the trailing whitespace in doc/index.md. Unfortunately, that trailing whitespace was actually markdown syntax for line breaks.
2014-01-11doc: build the docs for librustpkgKevin Ballard-0/+2
2014-01-12Further details on channel ideaMatthias Einwag-0/+6
2014-01-12Introduced a chapter that describes how to perform callbacks from C to RustMatthias Einwag-0/+169
2014-01-11Various READMEs and docs cleanupAdrien Tétar-81/+89
Noticeably closes #11428.
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-83/+92
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-10"As long an iterator" => "As long as an iterator"kud1ing-1/+1
2014-01-10Remove *.pot files and ignore them now.OGINO Masanori-15263/+0
The .pot files can be generated automatically and the files contain timestamps in their content. They can cause huge conflicts and take huge space even if you are not a translator. This commit is a part of improvement discussed on https://github.com/mozilla/rust/pull/11383 . Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-10Update doc/po4a.conf for recent changes.OGINO Masanori-5/+16
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-09Remove ApproxEq and assert_approx_eq!Brendan Zabarauskas-2/+1
This trait seems to stray too far from the mandate of a standard library as implementations may vary between use cases.
2014-01-09Fix cheatsheet examples on 32-bit platforms.Huon Wilson-3/+3
0xDEADBEEF doesn't fit in an int = i32 (on 32-bit computers).
2014-01-07doc: TyposBrian Anderson-1/+1
2014-01-07Fixed code snippetsClinton Ryan-15/+15
2014-01-07Address some minor points in the pointer guideHuon Wilson-12/+18
cc #11364.
2014-01-07doc: Add rustc and syntax to the indexBrian Anderson-0/+2
2014-01-07doc: Add libgreen and libnative to the indexBrian Anderson-0/+2
2014-01-07'borrowed pointer' -> 'reference'Brian Anderson-98/+98
2014-01-07doc: Fix URL of libextra docsBrian Anderson-1/+1
2014-01-07doc: Title reference manual consistentlyBrian Anderson-1/+1
2014-01-07doc: Highlight the testing guide correctlyBrian Anderson-22/+22
2014-01-07mk: Start testing the cheatsheetBrian Anderson-3/+14
2014-01-07doc: Title guides consistentlyBrian Anderson-8/+8
2014-01-07doc: Fix table format in cheatsheetBrian Anderson-6/+6
2014-01-07doc: Syntax highlight the cheatsheetBrian Anderson-28/+28
2014-01-07auto merge of #11364 : brson/rust/docs, r=alexcrichtonbors-151/+522
This reorganizes the documentation index to be more focused on the in-tree docs, and to clean up the style, and it also adds @steveklabnik's pointer guide.
2014-01-07auto merge of #11350 : kchmck/rust/fix-pdf-glitches, r=alexcrichtonbors-0/+18
I was reading through the tutorial and manual pdfs and noticed some of the code blocks have glitches in their formatting: ![](http://i.imgur.com/9HXZ4dW.png) ![](http://i.imgur.com/Ds2By6j.png) Putting empty lines around the blocks fixes this. I did a search through the other markdown files and made the change there as well.
2014-01-06doc: Fix tests in pointer guideBrian Anderson-51/+58
2014-01-06Add Pointer tutorial, rename borrowed pointer tutorial.Steve Klabnik-8/+484
2014-01-06doc: Update style of index, organization and trim out some excess.Brian Anderson-144/+32