Youngsoo Son
0c082047bc
Replace shared/unique by managed/owned in the tutorial
2013-05-14 22:25:55 +09:00
Huon Wilson
d43908a3a7
doc: document the #[deriving] attribute.
...
Closes #4916 .
2013-05-13 20:04:03 +10:00
Olivier Saut
017e7e8be1
Replace io::println by println as it is now included in prelude.rs
2013-05-10 21:12:11 +02:00
Daniel Micay
86efd97a10
add gitattributes and fix whitespace issues
2013-05-03 20:01:42 -04:00
ILYONG CHO
9d33008da1
tutorial: Fix 'self' to 'Self'
2013-04-29 17:59:25 +09:00
Daniel Micay
46f91a0fa9
make way for a new iter module
2013-04-28 22:31:39 -04:00
Daniel Micay
721e1143a5
tutorial: rework the section on destructors
...
This removes the comparison to manual memory management examples,
because it requires too much existing knowledge. Implementing custom
destructors can be covered in the FFI tutorial, where `unsafe` is
already well explained.
2013-04-26 14:07:47 -04:00
Brendan Zabarauskas
01eb5e8ad3
Rename Div operator trait to Quot and Modulo operator trait to Rem
2013-04-22 01:58:53 +10:00
Dan Luu
69f6ac5d31
Fix debug! usage in tutorial
2013-04-19 19:17:34 -04:00
Dan Luu
7373c64a4c
Explain use of debug\! in tutorial
2013-04-17 11:51:43 -04:00
bors
a425b75c64
auto merge of #5773 : dunsmoreb/rust/incoming, r=bstrie
...
Updates the tutorial to include a simple definition for tuples in section 4.2. Fixes #5132 .
2013-04-10 06:04:00 -07:00
Bryan Dunsmore
08bc392d94
Update destructuring to reference tuples section.
2013-04-10 07:06:18 -05:00
bors
786ae0114b
auto merge of #5782 : zofrex/rust/doc-1-tuples, r=thestinger
...
As per [the 0.6 release notes](https://github.com/mozilla/rust/wiki/Doc-detailed-release-notes#06-april-2013 ) single-element tuples are legal. I spotted a couple of places in the documentation that said otherwise, and propose these changes to them.
2013-04-08 16:22:03 -07:00
bors
c92936395c
auto merge of #5775 : pavpanchekha/rust/patch-1, r=thestinger
...
Change wrong field name in "Trait Inheritance" section.
2013-04-08 11:10:00 -07:00
Pavel Panchekha
c6d6782906
Fixed typo
...
Change wrong field name in "Trait Inheritance" section.
2013-04-07 23:19:31 -03:00
Bryan Dunsmore
f0d0cbfff8
Include definition of tuples for destructuring.
...
Updates the tutorial to include a simple definition for tuples in
section 4.2. Fixes #5132 .
2013-04-07 17:09:15 -05:00
zofrex
621d45b341
Update tutorial: 1-tuples now exist
2013-04-07 22:08:23 +01:00
bors
614d6da828
auto merge of #5721 : dhardy/rust/master, r=graydon
...
This is some stuff which seemed to be missing to me (though I haven't read everything yet so hope I haven't missed the relevant section).
A similar addition for borrowing handles is needed, but #5720 stumped me.
Comments welcome.
2013-04-05 18:54:52 -07:00
Diggory Hardy
e2a6feb8fe
Tutorial: spelling correction and move a failing test to an xfail-test marked code block.
2013-04-05 12:26:47 +02:00
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
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
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
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
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
Graydon Hoare
951f460aa8
tidy version numbers and copyright dates
2013-04-01 16:15:49 -07:00
Brian Anderson
243e601e51
doc: Update tutorial description of core
2013-04-01 14:30:14 -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
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
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
Patrick Walton
b07b36bbf3
test: Fix tests
2013-03-26 22:45:22 -07:00
Alex Crichton
31f6e64324
doc: Remove mentions of oldmap::HashMap
2013-03-26 19:20:02 -04:00
Graydon Hoare
b481829306
docs: update to avoid mention of const.
2013-03-25 15:53:02 -07:00
Patrick Walton
28efc234f4
libcore: Fix obsolete syntax in extfmt
2013-03-22 23:09:15 -07:00
Luca Bruno
f9bb7b7768
Tutorial: make struct section more coherent
...
In struct section of tutorial, make everything more coherent and
clear by always using "struct Point". Also, do not prematurely
introduce pointers and arrays. Fixes #5240
Signed-off-by: Luca Bruno <lucab@debian.org>
2013-03-21 21:33:29 +01:00
Daniel Micay
9967dc81fe
rewrite the tutorial section on boxes
2013-03-19 16:27:08 -04:00
Patrick Walton
8fa66e8e07
librustc: Remove implicit self from the language, except for old-style drop blocks.
2013-03-13 20:07:10 -07:00
Brian Anderson
82f190355b
Remove uses of log
2013-03-11 23:19:42 -07:00
Patrick Walton
08c840205e
librustc: Lint the old drop
destructor notation off
2013-03-11 09:36:00 -07:00
Patrick Walton
1fcb0443cf
doc: Remove documentation on newtype enums.
2013-03-11 09:35:59 -07:00
Patrick Walton
d7e74b5e91
librustc: Convert all uses of assert
over to fail_unless!
2013-03-07 22:37:57 -08:00