Diggory Hardy
1e483c7b70
Tutorial: fix typo
2013-04-04 22:35:23 +02:00
Diggory Hardy
964fc862e0
Tutorial: comment on how mutability applies to boxes
2013-04-04 18:13:12 +02:00
bors
717ed51f12
auto merge of #5716 : dhardy/rust/master, r=thestinger
2013-04-04 06:12:49 -07:00
Diggory Hardy
cb91e91418
Tutorial: rename variable to avoid confusion.
2013-04-04 15:08:25 +02:00
bors
b5d8224212
auto merge of #5713 : brson/rust/tutorial2, r=thestinger
...
It doesn't quite reflect reality
2013-04-04 02:18:47 -07:00
bors
1dc330c313
auto merge of #5707 : brettcannon/rust/patch-1, r=thestinger
...
The sentence "Remember that `(float, float)` is a tuple of two floats"
sounds like you've already read a section on tuples, but that section
comes later. Changing it to "Assuming that ..." makes it more about
taking the writer's word that the syntax is how tuples are defined.
2013-04-04 01:21:50 -07:00
bors
21de574625
auto merge of #5703 : steveklabnik/rust/add_log_docs, r=thestinger
...
Closes #5699 .
2013-04-04 00:18:45 -07:00
Brian Anderson
679b1dcb62
doc: Rewrite task tutorial intro
...
It doesn't quite reflect reality
2013-04-03 22:54:58 -07:00
bors
aa899c97d9
auto merge of #5710 : ajuckel/rust/patch-1, r=luqmana
...
One word typo fix
2013-04-03 22:30:45 -07:00
Anthony Juckel
e2c7a4def2
Simple typo fix
2013-04-03 19:10:09 -05:00
Steve Klabnik
a7f0bfbda6
One more typo: dubug -> debug
2013-04-03 16:59:13 -07:00
Brett Cannon
8dd5a70ef4
Update tut. to not sound like I missed a section
...
The sentence "Remember that `(float, float)` is a tuple of two floats"
sounds like you've already read a section on tuples, but that section
comes later. Changing it to "Assuming that ..." makes it more about
taking the writer's word that the syntax is how tuples are defined.
2013-04-03 18:52:28 -03:00
Steve Klabnik
3044f5e2b6
typo fix: na -> an
2013-04-03 12:44:41 -07:00
Steve Klabnik
d79b22474c
Add information about logging macros to the tutorial.
...
Closes #5699 .
2013-04-03 11:40:23 -07:00
Daniel Micay
cc148b58ff
rename Linear{Map,Set} => Hash{Map,Set}
2013-04-03 10:30:36 -04:00
Daniel Micay
44029a5bbc
hashmap: rm linear namespace
2013-04-03 10:30:18 -04:00
bors
2815742ba5
auto merge of #5669 : graydon/rust/tweaks, r=thestinger
...
Just some minor cleanup of version strings and copyrights.
2013-04-01 18:00:43 -07:00
Graydon Hoare
951f460aa8
tidy version numbers and copyright dates
2013-04-01 16:15:49 -07:00
bors
d1935898ed
auto merge of #5662 : catamorphism/rust/docs, r=catamorphism
...
r? @brson
2013-04-01 16:03:47 -07:00
Tim Chevalier
ce09645591
docs: Xfail test, it's just for illustration anyway
2013-04-01 15:21:22 -07:00
Brian Anderson
243e601e51
doc: Update tutorial description of core
2013-04-01 14:30:14 -07:00
Tim Chevalier
dbeea18fc5
docs: Document language items, as per #3342
2013-04-01 14:05:03 -07:00
Luqman Aden
d617030d63
Update tutorial.md
...
Change fn() -> &fn().
2013-03-31 18:34:51 -07:00
Patrick Walton
1e91595520
librustc: Remove fail_unless!
2013-03-29 16:39:08 -07:00
bors
a17a9d41f6
auto merge of #5624 : thestinger/rust/tutorial, r=pcwalton
2013-03-29 13:30:46 -07:00
Daniel Micay
0189ef3600
tutorial: add an example of freezing a managed box
2013-03-29 15:45:10 -04:00
Daniel Micay
f78af18127
tutorial: improve the managed boxes section
2013-03-29 15:45:10 -04:00
Daniel Micay
85ed840e23
tutorial: improve the owned boxes section
2013-03-29 15:45:07 -04:00
Daniel Micay
777ad8b204
tutorial: use "owned box" consistently
2013-03-29 14:16:52 -04:00
bors
706ed6dd53
auto merge of #5583 : jbclements/rust/docfix-for-block-comment-grammar, r=jbclements
...
... by adding Kleene '+' in two places, and changing a "non-slash" into "non_slash_or_star".
Closes #1588
2013-03-29 09:39:43 -07:00
bors
5da9e12778
auto merge of #5570 : alexcrichton/rust/fix-unused-imports, r=sanxiyn
...
Before it wouldn't warn about unused imports in the list if something in the list was used. These commits fix that case, add a test, and remove all unused imports in lists of imports throughout the compiler.
2013-03-29 05:57:44 -07:00
Alex Crichton
be57d745d2
Removing unused imports
2013-03-28 23:56:46 -04:00
Daniel Micay
d4509f270b
tutorial: only Owned types can have a Drop impl
2013-03-28 18:41:55 -04:00
Daniel Micay
467502216e
tutorial: cleaner libc use statements
2013-03-28 17:53:29 -04:00
John Clements
dcb8fa8f35
added defn of non_slash_or_star
2013-03-28 10:23:20 -07:00
John Clements
81d30ade61
fix another subtle bug in comment regex
2013-03-28 10:19:08 -07:00
John Clements
48cb50af13
fixes stated grammar for block comments, by adding Kleene '+' in two places.
...
Closes #1588
2013-03-27 10:17:37 -07:00
Patrick Walton
b07b36bbf3
test: Fix tests
2013-03-26 22:45:22 -07:00
Patrick Walton
8b56a8380b
librustc: Modify all code to use new lifetime binder syntax
2013-03-26 21:30:17 -07:00
Alex Crichton
31f6e64324
doc: Remove mentions of oldmap::HashMap
2013-03-26 19:20:02 -04:00
bors
7f5d7e1c2e
auto merge of #5549 : brson/rust/rustdoc, r=brson
...
r?
2013-03-26 09:52:14 -07:00
Brian Anderson
4d745c288a
rustdoc: Tweak list style
2013-03-26 09:31:44 -07:00
Felix S. Klock II
e1dccf9a73
Updated to reflect alpha-rename of constant/static items section.
2013-03-26 14:36:01 +01:00
Felix S. Klock II
5b10f4e117
Miscellaneous documentation additions.
...
Added notes explaining how [expr, ..expr] form is used, targeted at
individuals like me who thought it was more general and handled
dynamic repeat expressions. (I left a TODO for this section in a
comment, but perhaps that is bad form for the manual...)
Added example of `do` syntax with a function of arity > 1; yes, one
should be able to derive this from the text above it, but it is still
a useful detail to compare and contrast against the arity == 1 case.
Added example of using for expression over a uint range, since someone
who is most used to write `for(int i; i < lim; i++) { ... }` will
likely want to know how to translate that form (regardless of whether
it happens to be good style or not for their use-case).
Added note about the semi-strange meaning of "fixed size" of vectors
in the vector type section.
2013-03-26 14:18:48 +01:00
bors
d469212d9d
auto merge of #5507 : graydon/rust/fixups2, r=graydon
...
Just some editing-to-reflect-reality on release notes and manual.
2013-03-25 16:36:58 -07:00
Graydon Hoare
b481829306
docs: update to avoid mention of const.
2013-03-25 15:53:02 -07:00
bors
df171e4b68
auto merge of #5505 : catamorphism/rust/macro-tutorial, r=graydon
...
r? @jbclements
2013-03-25 15:13:09 -07:00
Patrick Walton
28efc234f4
libcore: Fix obsolete syntax in extfmt
2013-03-22 23:09:15 -07:00
Tim Chevalier
3633ba240f
Copyedit macro tutorial
2013-03-22 16:11:27 -07:00
Tim Chevalier
ab2a397ae7
docs: Copyedit my randomly assigned sections of the manual
2013-03-22 14:45:16 -07:00