diff --git a/aspnetcore/grpc/protobuf.md b/aspnetcore/grpc/protobuf.md index 5c723719cee4..785edaecd3ef 100644 --- a/aspnetcore/grpc/protobuf.md +++ b/aspnetcore/grpc/protobuf.md @@ -133,7 +133,7 @@ message Person { } ``` -`wrappers.proto` types aren't exposed in generated properties. Protobuf automatically maps them to appropriate .NET nullable types when generating C# messages. For example, a `google.protobuf.Int32Value` field generates a `int?` property. Reference type properties like `string` and `ByteString` are unchanged except `null` can be assigned to them without error. +`wrappers.proto` types aren't exposed in generated properties. Protobuf automatically maps them to appropriate .NET nullable types in C# messages. For example, a `google.protobuf.Int32Value` field generates a `int?` property. Reference type properties like `string` and `ByteString` are unchanged except `null` can be assigned to them without error. The following table shows the complete list of wrapper types with their equivalent C# type: @@ -162,7 +162,7 @@ var payload = new PayloadResponse(); payload.Data = ByteString.CopyFrom(data); ``` -A `ByteString`s data can be accessed directly using `ByteString.Span` or `ByteString.Memory`. Or call `ByteString.ToByteArray()` to convert an instance back into a byte array: +`ByteString` data is accessed directly using `ByteString.Span` or `ByteString.Memory`. Or call `ByteString.ToByteArray()` to convert an instance back into a byte array: ```csharp var payload = await client.GetPayload(new PayloadRequest());