Skip to content

Commit

Permalink
fix typos in article (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrvadl authored Jun 24, 2024
1 parent 640007d commit de48a52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _content/tour/eng/generics-type-constraints.article
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ method set of behavior.
}

A generic interface is declared where T is the type of value to be passed into a
method named match. The interface also constrains its use to only values of userdefined
method named match. The interface also constrains its use to only values of user-defined
type person and food.

When you look at the match function, there isn’t an obvious need to restrict the
Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/methods.article
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ use of pointer semantics because the data dictates the data semantics and not th
function.

One exception to using value semantics is when you need to share a slice or map
with a function that performs unmarshaling or decoding.
with a function that performs unmarshalling or decoding.

** Data Semantic Guideline For Struct Types

Expand Down
2 changes: 1 addition & 1 deletion _content/tour/eng/slices.article
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ to move the data around my program. This includes declaring fields on a type.
This goes for all of Go’s internal data structures (slices, maps, channels, interfaces, and functions).

One reason to switch to pointer semantics is if you need to share the slice for a
decoding or unmarshaling operation. Using pointers for these types of operations
decoding or unmarshalling operation. Using pointers for these types of operations
are ok, but document this if it’s not obvious.

** Contiguous Memory Layout
Expand Down

0 comments on commit de48a52

Please sign in to comment.