Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(doc): Fix proto code block #778

Merged
merged 3 commits into from
Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ a Rust module. For example, given the `package` specifier:

[package]: https://developers.google.com/protocol-buffers/docs/proto#packages

```proto,ignore
```protobuf,ignore
package foo.bar;
```

Expand All @@ -83,7 +83,7 @@ All Rust types generated from the file will be in the `foo::bar` module.

Given a simple message declaration:

```proto,ignore
```protobuf,ignore
// Sample message.
message Foo {
}
Expand Down Expand Up @@ -131,7 +131,7 @@ All `.proto` enumeration types convert to the Rust `i32` type. Additionally,
each enumeration type gets a corresponding Rust `enum` type. For example, this
`proto` enum:

```proto,ignore
```protobuf,ignore
enum PhoneType {
MOBILE = 0;
HOME = 1;
Expand Down Expand Up @@ -186,7 +186,7 @@ message will have 'accessor' methods to get/set the value of the field as the
Rust enum type. For instance, this proto `PhoneNumber` message that has a field
named `type` of type `PhoneType`:

```proto,ignore
```protobuf,ignore
message PhoneNumber {
string number = 1;
PhoneType type = 2;
Expand Down Expand Up @@ -257,7 +257,7 @@ Oneof fields convert to a Rust enum. Protobuf `oneof`s types are not named, so
defines the enum in a module under the struct. For example, a `proto3` message
such as:

```proto,ignore
```protobuf,ignore
message Foo {
oneof widget {
int32 quux = 1;
Expand Down Expand Up @@ -294,7 +294,7 @@ application's specific needs.

Example `.proto` file:

```proto,ignore
```protobuf,ignore
syntax = "proto3";
package tutorial;

Expand Down