Stefano is right, based on the proto definition earlier in the tutorial:
message AddressBook {
repeated Person people = 1;
}
Thanks for pointing this out!
On Wed, Aug 3, 2022 at 12:12 PM Derek Perez <[email protected]> wrote:
> Thanks for the report! +David Castro <[email protected]> can you
> revise this?
>
> - D
>
> On Wed, Aug 3, 2022 at 12:43 AM stefano <[email protected]> wrote:
>
>> If you look at this link
>>
>>
>> https://developers.google.com/protocol-buffers/docs/javatutorial#writing-a-message
>>
>> you can find the following code:
>> ...
>> // Add an address.
>> *addressBook.addPerson*(
>> PromptForAddress(new BufferedReader(new InputStreamReader(System.in
>> )),
>> System.out));
>> ...
>>
>> But I think that the correct code is:
>> ...
>> // Add an address.
>> *addressBook.addPeople*(
>> PromptForAddress(new BufferedReader(new InputStreamReader(System.in
>> )),
>> System.out));
>> ...
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/protobuf/bbd01667-922d-4950-9481-54f46c7a2826n%40googlegroups.com
>> <https://groups.google.com/d/msgid/protobuf/bbd01667-922d-4950-9481-54f46c7a2826n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
David Castro | Core Languages Technical Writer | [email protected]
*[Off-hours communication: If you receive this email outside of your usual
working hours, please don't feel the need to respond until it's within your
working window.]*
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/CAC5OE1M-XVvOqK1ntq8bA2%2BFz9Tv4Kw9VYFut-gBy4tQ1C6i9A%40mail.gmail.com.