1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-18 04:23:14 +02:00

Fix a comment in the protobuf example (#1604)

In https://github.com/google/comprehensive-rust/pull/1591, I changed the
implementation of the protobuf example significantly. However, I forgot
to update a comment which is referred to the old style of
implementation. I'll this slip here.
This commit is contained in:
Martin Huschenbett 2023-12-20 16:40:26 +01:00 committed by GitHub
parent 0f0596da9d
commit 52bfb0c4a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,8 @@ fn parse_field(data: &[u8]) -> Result<(Field, &[u8]), Error> {
}
// ANCHOR: parse_message
/// Parse a message in the given data, calling `field_callback` for each field in the message.
/// Parse a message in the given data, calling `T::add_field` for each field in
/// the message.
///
/// The entire input is consumed.
fn parse_message<'a, T: ProtoMessage<'a>>(mut data: &'a [u8]) -> Result<T, Error> {