1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-08 23:35:34 +02:00

Fix inclusion of PhoneNumber in exercise ()

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

@ -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,