Skip to content

Commit b66a175

Browse files
authored
Merge pull request #84 from Logofile/sync
This change includes the following modifications:
2 parents a8c5c12 + 83531fc commit b66a175

File tree

19 files changed

+147
-117
lines changed

19 files changed

+147
-117
lines changed

content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Dart, Go, Ruby, PHP, and C#, with more languages to come.
9393
<ol>
9494
9595
<li>
96-
<a href="https://github.com/protocolbuffers/protobuf#protocol-compiler-installation">Download
96+
<a href="https://github.com/protocolbuffers/protobuf#protobuf-compiler-installation">Download
9797
and install</a> the protocol buffer compiler.
9898
</li>
9999

content/editions/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ message Person {
224224
string name = 1;
225225
int32 id = 2 [features.presence = IMPLICIT];
226226
227-
enum Pay_Type
227+
enum Pay_Type {
228228
PAY_TYPE_UNSPECIFIED = 1,
229229
PAY_TYPE_SALARY = 2,
230230
PAY_TYPE_HOURLY = 3

content/getting-started/cpptutorial.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ any particular field definition, see the
276276
277277
The generated code includes a `PhoneType` enum that corresponds to your `.proto`
278278
enum. You can refer to this type as `Person::PhoneType` and its values as
279-
`Person::MOBILE`, `Person::HOME`, and `Person::WORK` (the implementation details
280-
are a little more complicated, but you don't need to understand them to use the
281-
enum).
279+
`Person::PHONE_TYPE_MOBILE`, `Person::PHONE_TYPE_HOME`, and
280+
`Person::PHONE_TYPE_WORK` (the implementation details are a little more
281+
complicated, but you don't need to understand them to use the enum).
282282
283283
The compiler has also generated a nested class for you called
284284
`Person::PhoneNumber`. If you look at the code, you can see that the "real"
@@ -394,11 +394,11 @@ void PromptForAddress(tutorial::Person* person) {
394394
string type;
395395
getline(cin, type);
396396
if (type == "mobile") {
397-
phone_number->set_type(tutorial::Person::MOBILE);
397+
phone_number->set_type(tutorial::Person::PHONE_TYPE_MOBILE);
398398
} else if (type == "home") {
399-
phone_number->set_type(tutorial::Person::HOME);
399+
phone_number->set_type(tutorial::Person::PHONE_TYPE_HOME);
400400
} else if (type == "work") {
401-
phone_number->set_type(tutorial::Person::WORK);
401+
phone_number->set_type(tutorial::Person::PHONE_TYPE_WORK);
402402
} else {
403403
cout << "Unknown phone type. Using default." << endl;
404404
}
@@ -494,13 +494,13 @@ void ListPeople(const tutorial::AddressBook& address_book) {
494494
const tutorial::Person::PhoneNumber& phone_number = person.phones(j);
495495
496496
switch (phone_number.type()) {
497-
case tutorial::Person::MOBILE:
497+
case tutorial::Person::PHONE_TYPE_MOBILE:
498498
cout << " Mobile phone #: ";
499499
break;
500-
case tutorial::Person::HOME:
500+
case tutorial::Person::PHONE_TYPE_HOME:
501501
cout << " Home phone #: ";
502502
break;
503-
case tutorial::Person::WORK:
503+
case tutorial::Person::PHONE_TYPE_WORK:
504504
cout << " Work phone #: ";
505505
break;
506506
}

content/news/2022-05-06.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "Changes announced May 6, 2022"
3-
weight = 27
43
linkTitle = "May 6, 2022"
54
toc_hide = "true"
65
description = "Changes announced for Protocol Buffers on May 6, 2022."

content/news/2022-07-06.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "Changes announced July 6, 2022"
3-
weight = 26
43
linkTitle = "July 6, 2022"
54
toc_hide = "true"
65
description = "Changes announced for Protocol Buffers on July 6, 2022."

content/news/2022-08-03.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "Changes announced August 3, 2022"
3-
weight = 25
43
linkTitle = "August 3, 2022"
54
toc_hide = "true"
65
description = "Changes announced for Protocol Buffers on August 3, 2022."

content/news/2023-04-11.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "Changes announced April 11, 2023"
3-
weight = 24
43
linkTitle = "April 11, 2023"
54
toc_hide = "true"
65
description = "Changes announced for Protocol Buffers on April 11, 2023."

content/news/2023-04-20.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "Changes announced April 20, 2023"
3-
weight = 23
43
linkTitle = "April 20, 2023"
54
toc_hide = "true"
65
description = "Changes announced for Protocol Buffers on April 20, 2023."

content/news/2023-04-28.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "Changes announced April 28, 2023"
3-
weight = 22
43
linkTitle = "April 28, 2023"
54
toc_hide = "true"
65
description = "Changes announced for Protocol Buffers on April 28, 2023."

content/news/2023-06-29.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "Changes Announced on June 29, 2023"
3-
weight = 21
43
linkTitle = "June 29, 2023"
54
toc_hide = "true"
65
description = "Changes announced for Protocol Buffers on June 29, 2023."

0 commit comments

Comments
 (0)