Skip to content

Commit

Permalink
Fix doc examples for string.example (#271)
Browse files Browse the repository at this point in the history
I noticed that the examples for string examples use integers, which is
wrong. This PR updates them to actual strings.
  • Loading branch information
sudorandom authored Nov 18, 2024
1 parent 45cb584 commit bebe6de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions proto/protovalidate/buf/validate/validate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3732,8 +3732,8 @@ message StringRules {
// ```proto
// message MyString {
// string value = 1 [
// (buf.validate.field).string.example = 1,
// (buf.validate.field).string.example = 2
// (buf.validate.field).string.example = "hello",
// (buf.validate.field).string.example = "world"
// ];
// }
// ```
Expand Down
4 changes: 2 additions & 2 deletions tools/internal/gen/buf/validate/validate.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bebe6de

Please sign in to comment.