Skip to content

Commit

Permalink
chore(doc): Fix proto code block (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
  • Loading branch information
tottoto and LucioFranco committed Dec 12, 2022
1 parent 4c49776 commit 5109f79
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
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

0 comments on commit 5109f79

Please sign in to comment.