1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-11-21 13:25:53 +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:
Martin Geisler 2024-10-18 03:03:48 -04:00 committed by GitHub
parent 47c3d50542
commit 466233d959
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,7 +154,7 @@ fn parse_message<'a, T: ProtoMessage<'a>>(mut data: &'a [u8]) -> T {
// ANCHOR_END: parse_message
#[derive(PartialEq)]
// ANCHOR: message_message_phone_number_type
// ANCHOR: message_phone_number_type
#[derive(Debug, Default)]
struct PhoneNumber<'a> {
number: &'a str,