Commit Graph

293 Commits

Author SHA1 Message Date
Brian Anderson
f15ccc06f0 tutorial: Update for moves based on type
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
41870da5ad tutorial: Typos 2012-12-20 16:32:42 -08:00
Brian Anderson
191b328f31 tutorial: Move method discussion after closures, before generics
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
af5cd341d3 Move mast static method to the section on methods
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
42ab33e572 Use explicit self in rest of tutorial
/cc: #4217
2012-12-20 16:32:42 -08:00
Brian Anderson
171e6a16f7 tutorial: Rewrite method section to deal with explicit self
Has to be moved until after the pointer discussion.

/cc: #4217
2012-12-20 16:32:41 -08:00
Brian Anderson
7d2c2dbf4b tutorial: Reorder sections on traits
/cc: #4217
2012-12-20 16:32:41 -08:00
Brian Anderson
850050b7df doc: 'trait constraints' -> 'inheritance'. Expand
/cc: #4217
2012-12-20 16:32:41 -08:00
Tim Chevalier
8554d5e710 doc: Mention tuple structs
/cc: #4217
2012-12-19 21:52:03 -07:00
Tim Chevalier
b99a2542f3 docs: mention static methods
/cc #4217
2012-12-19 21:32:19 -07:00
Tim Chevalier
2d313fe501 Update docs to mention trait constraints; also fix failing doc tests
/cc #4217
2012-12-19 20:38:28 -07:00
Brian Anderson
6742c982a4 Bump version numbers in docs 2012-12-19 18:03:03 -08:00
Isaac Aggrey
63232d6cf1 Fix doc typo 2012-12-19 12:46:24 -06:00
Brian Anderson
263136d389 'trait instance' -> 'object' 2012-12-18 17:03:56 -08:00
Brian Anderson
80a4769318 Update tutorial on generics. #4217 2012-12-18 16:28:40 -08:00
Brian Anderson
d4daa78aa3 Update docs for crate file changes 2012-12-15 19:55:25 -08:00
Brian Anderson
fa4fbd51f6 Update docs for kind name changes 2012-12-13 15:52:50 -08:00
Graydon Hoare
645bd98b60 doc: add missing decls to example, r=burningtree. 2012-12-11 13:43:14 -08:00
Tim Chevalier
eb21ced467 Discuss module syntax earlier in the tutorial
as per #3578
2012-12-11 11:23:20 -08:00
Tim Chevalier
65a1287f53 Discuss the Option type a bit in the tutorial
as per #3577
2012-12-11 11:23:20 -08:00
Lindsey Kuper
1ba9419e6c Tutorial typo fixes 2012-12-10 15:59:18 -05:00
Brian Anderson
d1c558394f Fix tutorial's use of Drop 2012-11-29 16:23:24 -08:00
Damien Grassart
9f290b5669 Fix sample code in the tutorial 2012-11-26 14:41:29 -08:00
Tim Chevalier
e454a47bf2 [tutorial] Use a less confusing closure example
Closes #3996
2012-11-24 09:28:34 -08:00
Cat's Eye Technologies
7c35f7ed04 Minor grammatical edits; use preferred nomenclature consistently. 2012-11-11 16:19:40 +00:00
Patrick Walton
2904095570 rustc: Implement the Drop trait. r=brson 2012-11-07 12:34:32 -08:00
Tim Chevalier
19dae8dae1 Remove remaining mentions of <- from docs 2012-10-23 12:13:09 -07:00
Ben Striegel
f7ce3dc55f Extraneous sigil patrol: turn &[] literals into [] 2012-10-17 11:19:38 -07:00
Ben Striegel
5e1d0bab80 Sigil patrol: change fn@ fn& fn~ to @fn &fn ~fn
This also involves removing references to the old long-form closure
syntax, which pcwalton alleges is deprecated and which was never updated
for the new forms, e.g. `@fn() {}` is illegal.
2012-10-17 11:19:38 -07:00
Ben Striegel
e94e82cb8e Extraneous sigil patrol: ~"string literals" 2012-10-17 11:19:38 -07:00
Niko Matsakis
a92c3db0b3 add missing pub from multifile example in sec 12.3 2012-10-16 20:20:18 -07:00
Tim Chevalier
ea5e3d21ff Make moves explicit in doc examples
Had to remove the buffalo example. It was awkward to update for
explicit moves.
2012-10-12 20:43:37 -07:00
Daniel Patterson
c33bff9557 tutorial: add note about mutability of vectors 2012-10-11 23:13:04 -04:00
Tim Chevalier
41bce91cb8 Fix tutorial link to tasks
Closes #3715
2012-10-11 14:17:59 -07:00
Tim Chevalier
39acb06503 Copyedit sections 11-13 of the tutorial. That's all, folks! 2012-10-10 21:29:25 -07:00
Tim Chevalier
6d250517ed Copyedit sections 9 and 10 of the tutorial 2012-10-10 21:06:22 -07:00
Tim Chevalier
7582a482c6 Copyedit sections 7 and 8 of the tutorial 2012-10-10 20:52:20 -07:00
Tim Chevalier
1a8b00a03a Copyedit sections 5 and 6 of the tutorial 2012-10-10 20:35:33 -07:00
Tim Chevalier
d7b8512eae Copyedit section 4 of tutorial 2012-10-10 20:08:08 -07:00
Tim Chevalier
6627ac6623 Copyedit section 3 of tutorial 2012-10-10 19:32:11 -07:00
Tim Chevalier
38ccaed4ce Copyedit sections 1 and 2 of tutorial 2012-10-10 19:05:13 -07:00
Brian Anderson
b7b2217976 Update tutorial install instructions 2012-10-10 17:56:23 -07:00
Patrick Walton
d9317a174e doc: Tweak the wording of the memory model goals 2012-10-09 21:39:18 -07:00
Patrick Walton
6da09c3b43 doc: Fix some inaccuracies in the tutorial.
* Pointers can refer to stack objects as well as heap objects.

* Non-managed types can be cyclic if an arena is used.
2012-10-09 21:24:28 -07:00
tav
4c968f47e0 doc: Remove duplicate word typo in the tutorial. 2012-10-09 01:30:46 +01:00
Brian Anderson
2a41abb9ef Work on the tutorial section on 'do' 2012-10-07 01:52:06 -07:00
Brian Anderson
07fb35227b Tutorial 2012-10-07 01:06:07 -07:00
Brian Anderson
f0c4140dd0 More tutorial tweaking 2012-10-06 22:57:40 -07:00
Brian Anderson
c6330036a4 'The' Rust Language Tutorial 2012-10-06 22:47:26 -07:00
Brian Anderson
b6443519c8 Remove some redundant info from tutorial 2012-10-06 22:45:48 -07:00