Hello all

I was reading the language tutorial and had a couple of questions. I hope
this is the appropriate forum for asking them.

In section 4.1 the example has "return 0", seemingly as an expression. Is
that correct usage? Should it not simply be "0" instead?

Section 5.3 describes tuples and the ways in which you _cannot_ access the
fields (i.e. not by name or dot notation). So I'm left wondering how one
accesses the fields of a tuple. Must it always be through pattern matching?

Thanks

n
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to