Skip to content

Commit

Permalink
chore: fix some comments (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
renshuncui authored Aug 13, 2024
1 parent 1bd5b0b commit b2860f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/programmability/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ as a list of unique IDs or addresses.
{{#include ../../../packages/samples/sources/programmability/collections.move:vec_set}}
```

VecSet will fail on attempt to insert a an item that already exists in the set.
VecSet will fail on attempt to insert an item that already exists in the set.

## VecMap

Expand Down
2 changes: 1 addition & 1 deletion reference/src/control-flow/pattern-matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ public struct MyStruct2 {
fun wild_match(x: MyStruct) {
match (x) {
MyStruct(.., 1) => 1,
// OK! The `..` pattern can be used at the begining of the constructor pattern
// OK! The `..` pattern can be used at the beginning of the constructor pattern
MyStruct(1, ..) => 2,
// OK! The `..` pattern can be used at the end of the constructor pattern
MyStruct(1, .., 1) => 3,
Expand Down

0 comments on commit b2860f3

Please sign in to comment.