Skip to content

Commit

Permalink
encoding/protobuf: fix typo in example
Browse files Browse the repository at this point in the history
s/exmaple/example/

Change-Id: Id472a4b5b0883b89976611a7a5174c30eb2802cf
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5920
Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
  • Loading branch information
tklauser authored and mpvl committed May 12, 2020
1 parent 99117ba commit 0212bb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions encoding/protobuf/examples/basic/basic.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ message MyType {
// A method must start with a capital letter.
repeated string method = 2 [(cue.val) = '[...=~"^[A-Z]"]'];

map<string, string> exmaple_map = 3;
}
map<string, string> example_map = 3;
}
4 changes: 2 additions & 2 deletions encoding/protobuf/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ func ExampleExtract() {
// // A method must start with a capital letter.
// method?: [...string] @protobuf(2)
// method?: [...=~"^[A-Z]"]
// exmapleMap?: {
// exampleMap?: {
// [string]: string
// } @protobuf(3,type=map<string,string>,exmaple_map)
// } @protobuf(3,type=map<string,string>,example_map)
// }
}

0 comments on commit 0212bb9

Please sign in to comment.