]> git.lizzy.rs Git - rust.git/commit
auto merge of #17836 : typelist/rust/guide-tuples, r=steveklabnik
authorbors <bors@rust-lang.org>
Wed, 8 Oct 2014 01:02:10 +0000 (01:02 +0000)
committerbors <bors@rust-lang.org>
Wed, 8 Oct 2014 01:02:10 +0000 (01:02 +0000)
commit0606234880ac8318a8e247e836ac61b32c63e9f9
treebe1bc6eb590ed017c7c8b47f749eb0bef86883b3
parent3b945dcae6dcedd0917652d66edd8ceefb4f73c1
parentc211d132c38f06196e76c0b5536fb2ae6af4d521
auto merge of #17836 : typelist/rust/guide-tuples, r=steveklabnik

Currently, the Guide says tuples "are only equivalent if the arity, types, and values are all identical", before presenting an example that uses `==` to compare two tuples whose arity and contained types match. This is misleading, because it implies that `==` can dynamically check whether two tuples have the same arity and contained types, whereas trying to do this would lead to a compiler error.

I tried to avoid destroying the flow of this section, but I'm not sure if I've been successful.
src/doc/guide.md