multichar chars in malformed match in 2-structs
Closed this issue · 3 comments
makslevental commented
fn how(i: u32) -> &'static str {
match i {
0: 'none',
1: 'one',
_: 'many'
}
}
->
fn how(i: u32) -> &'static str {
match i {
0 => "none",
1 => "one",
_ => "many"
}
}
stevedonovan commented
Thanks - I definitely need to use `rustc` as a proofreader. Fixed and book
rebuilt.
…On Sat, Mar 25, 2017 at 12:58 PM, Maksim Levental ***@***.***> wrote:
fn how(i: u32) -> &'static str {
match i {
0: 'none',
1: 'one',
_: 'many'
}
}
->
fn how(i: u32) -> &'static str {
match i {
0 => "none",
1 => "one",
_ => "many"
}
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#26>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AANXDSQFjo528xcfo7xA4ibX5vc9Ut4Hks5rpPM-gaJpZM4MpCmb>
.
makslevental commented
@stevedonovan you forgot the multichar char literals :)
stevedonovan commented
Heh, well I definitely shouldn't make edits just after a nap!
…On Sat, Mar 25, 2017 at 3:17 PM, Maksim Levental ***@***.***> wrote:
@stevedonovan <https://github.com/stevedonovan> you forgot the multichar
char literals :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANXDXdH803g-ySb_3BDGg8-MfBzmex5ks5rpRPNgaJpZM4MpCmb>
.