mirror of
https://github.com/ent/ent.git
synced 2026-04-28 13:40:56 +03:00
doc/md: fix highlighting in tutorial-grpc-service-generation-options.md (#2146)
This commit is contained in:
committed by
GitHub
parent
2e3aca1b1d
commit
7a97025ae6
@@ -25,7 +25,7 @@ To generate a service with multiple methods, bitwise OR the flags.
|
||||
|
||||
|
||||
To see this in action, we can modify our ent schema. Let's say we wanted to prevent our gRPC client from mutating entries. We can accomplish this by modifying `ent/schema/user.go`:
|
||||
```go {5-8}
|
||||
```go {5}
|
||||
func (User) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entproto.Message(),
|
||||
|
||||
Reference in New Issue
Block a user