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:
parent
0f0596da9d
commit
52bfb0c4a3
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user