Skip to content

Commit 769c2e5

Browse files
huonwthestinger
authored andcommitted
Minor doc updates to reflect #[deriving(Zero)], and small release notes adjustments.
The `extra::fileinput` module landed just after 0.6 was released, and there are many more derivable traits.
1 parent 9e95bc4 commit 769c2e5

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

RELEASES.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Version 0.7 (July 2013)
77
* `use mod` is no longer valid.
88
* `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
99
argument list.
10-
* `Encodable`, `Decodable`, `TotalOrd`, `TotalEq`, `DeepClone` can all
11-
be automatically derived with `#[deriving(...)]`.
10+
* `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
11+
`Rand`, `Zero` and `ToStr` can all be automatically derived with
12+
`#[deriving(...)]`.
1213
* The `Durable` trait is replaced with the `'static` bounds.
1314
* At long last, 'argument modes' no longer exist.
1415
* The `bytes!` macro returns a vector of bytes for string, u8, char,
@@ -55,8 +56,8 @@ Version 0.7 (July 2013)
5556
`(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
5657
* std: many types implement `Clone`.
5758
* std: `path` type renamed to `Path`.
58-
* std: Many standalone functions removed in favor of methods in
59-
`vec`, `str`. In the future methods will also work as functions.
59+
* std: Many standalone functions removed in favor of methods and iterators
60+
in `vec`, `str`. In the future methods will also work as functions.
6061
* std: `reinterpret_cast` removed. Used `transmute`.
6162
* std: ascii string handling in `std::ascii`.
6263
* std: `Rand` is implemented for ~/@.
@@ -71,7 +72,7 @@ Version 0.7 (July 2013)
7172
* std: `Cell` constructors converted to static methods.
7273
* extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
7374
* extra: `flate` module moved from `std` to `extra`.
74-
* extra: `FileInput` implements `std::io::Reader`.
75+
* extra: `fileinput` module for iterating over a series of files.
7576
* extra: `Complex` number type and `complex` module.
7677
* extra: `Rational` number type and `rational` module.
7778
* extra: `BigInt`, `BigUint` implement numeric and comparison traits.

doc/rust.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,7 @@ Supported traits for `deriving` are:
15611561
* `Clone` and `DeepClone`, to perform (deep) copies.
15621562
* `IterBytes`, to iterate over the bytes in a data type.
15631563
* `Rand`, to create a random instance of a data type.
1564+
* `Zero`, to create an zero (or empty) instance of a data type.
15641565
* `ToStr`, to convert to a string. For a type with this instance,
15651566
`obj.to_str()` has the same output as `fmt!("%?", obj)`.
15661567

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,7 +2319,7 @@ enum ABC { A, B, C }
23192319

23202320
The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
23212321
`TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
2322-
`IterBytes`, `Rand` and `ToStr`.
2322+
`IterBytes`, `Rand`, `Zero`, and `ToStr`.
23232323

23242324
# Modules and crates
23252325

0 commit comments

Comments
 (0)