Daniel Micay
195911fca4
tutorial-ffi: add example of a custom destructor
2013-04-26 14:07:57 -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
Marvin Löbel
3759b5711d
Fixed typo... And a billion other things.
2013-04-24 22:28:02 +02:00
Tim Chevalier
4508da226a
rustpkg: In doc, mention other implicit RUST_PATH entries
...
as per Graydon's comment
2013-04-22 18:17:32 -07:00
Tim Chevalier
d834c0d59d
docs: Sketch out rustpkg manual
2013-04-22 18:17:32 -07: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
Brian Anderson
decd3901d5
core::comm: Modernize constructors to use new
2013-04-18 14:07:35 -07:00
Dan Luu
7373c64a4c
Explain use of debug\! in tutorial
2013-04-17 11:51:43 -04:00
bors
8b74efaa7b
auto merge of #5852 : thestinger/rust/ffi, r=thestinger
2013-04-12 03:37:00 -07:00
Daniel Micay
53d2228b37
tutorial-ffi: add another missing word
2013-04-12 06:34:25 -04:00
Daniel Micay
a4db39a6fe
tutorial-ffi: add missing word
2013-04-12 03:15:07 -04:00
Daniel Micay
1faa3596b0
rewrite the ffi tutorial with snappy as an example
...
The example with OpenSSL is incorrect, because OpenSSL is using a
static variable for the return value and isn't thread-safe.
The gettimeofday example isn't great because it's not very portable.
2013-04-12 02:12:00 -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
ac9e694d59
Update manual for single-element tuple types
2013-04-07 22:08:40 +01:00
zofrex
d1e2d295f8
Update manual for single-element tuples
2013-04-07 22:08:34 +01: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
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