mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-16 21:49:50 +02:00
Fix inclusion of PhoneNumber
in exercise (#2426)
The anchor used the wrong name. This was not caught by our tests because the code isn’t expected to compile, even when this is included.
This commit is contained in:
parent
47c3d50542
commit
466233d959
@ -154,7 +154,7 @@ fn parse_message<'a, T: ProtoMessage<'a>>(mut data: &'a [u8]) -> T {
|
|||||||
// ANCHOR_END: parse_message
|
// ANCHOR_END: parse_message
|
||||||
|
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq)]
|
||||||
// ANCHOR: message_message_phone_number_type
|
// ANCHOR: message_phone_number_type
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
struct PhoneNumber<'a> {
|
struct PhoneNumber<'a> {
|
||||||
number: &'a str,
|
number: &'a str,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user