Skip to content

Commit 15d0461

Browse files
committed
gotypes: fix typos
(Was #3 by nikai3d) Change-Id: I63b238a112c1406e0aaad5f9e6cba956c24e11b9 Reviewed-on: https://go-review.googlesource.com/18190 Reviewed-by: Alan Donovan <[email protected]>
1 parent 3015500 commit 15d0461

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Diff for: gotypes/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ Objects are represented by the `Object` interface:
321321

322322
The first four methods are straightforward; we'll explain the other
323323
three later.
324-
`Name` returns the objects's name---an identifier.
324+
`Name` returns the object's name---an identifier.
325325
`Exported` is a convenience method that reports whether the first
326326
letter of `Name` is a capital, indicating that the object may be
327327
visible from outside the package.
@@ -1086,7 +1086,7 @@ named types for the purposes of assignability, even though the type
10861086
checker does not represent them using `Named`.
10871087
And `unsafe.Pointer` is a pointer type for the purpose of
10881088
determining whether the receiver type of a method is legal, even
1089-
though the type checker does not represet it using `Pointer`.
1089+
though the type checker does not represent it using `Pointer`.
10901090

10911091

10921092

@@ -1151,7 +1151,7 @@ An anonymous field is represented like a regular field, but its
11511151

11521152

11531153

1154-
One subtlety is relevent to tools that generate documentation.
1154+
One subtlety is relevant to tools that generate documentation.
11551155
When analyzing a declaration such as this,
11561156

11571157

@@ -1377,7 +1377,7 @@ satisfaction:
13771377
func MissingMethod(V Type, T *Interface, static bool) (method *Func, wrongType bool)
13781378

13791379

1380-
The `Implements` predicate reports whether a type satisifies an
1380+
The `Implements` predicate reports whether a type satisfies an
13811381
interface type.
13821382
`MissingMethod` is like `Implements`, but instead of
13831383
returning false, it explains why a type does not satisfy the
@@ -1737,7 +1737,7 @@ is a subtle consequence of the
17371737
section in the Go spec: "Two
17381738
identifiers are different if they are spelled differently, or if they
17391739
appear in different packages and are not exported."
1740-
In practical terms, this means that a type may have have two methods
1740+
In practical terms, this means that a type may have two methods
17411741
(or two fields, or one of each) both named `f` so long as those
17421742
methods are defined in different packages, as in this example:
17431743

@@ -1843,7 +1843,7 @@ If you only need a single method, don't construct the
18431843

18441844

18451845
The next program generates a boilerplate
1846-
declaration of a new concrete type that satisifies an existing
1846+
declaration of a new concrete type that satisfies an existing
18471847
interface.
18481848
Here's an example:
18491849

Diff for: gotypes/go-types.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Objects are represented by the `Object` interface:
238238

239239
The first four methods are straightforward; we'll explain the other
240240
three later.
241-
`Name` returns the objects's name---an identifier.
241+
`Name` returns the object's name---an identifier.
242242
`Exported` is a convenience method that reports whether the first
243243
letter of `Name` is a capital, indicating that the object may be
244244
visible from outside the package.
@@ -905,7 +905,7 @@ named types for the purposes of assignability, even though the type
905905
checker does not represent them using `Named`.
906906
And `unsafe.Pointer` is a pointer type for the purpose of
907907
determining whether the receiver type of a method is legal, even
908-
though the type checker does not represet it using `Pointer`.
908+
though the type checker does not represent it using `Pointer`.
909909

910910

911911

@@ -970,7 +970,7 @@ An anonymous field is represented like a regular field, but its
970970

971971

972972

973-
One subtlety is relevent to tools that generate documentation.
973+
One subtlety is relevant to tools that generate documentation.
974974
When analyzing a declaration such as this,
975975

976976

@@ -1196,7 +1196,7 @@ satisfaction:
11961196
func MissingMethod(V Type, T *Interface, static bool) (method *Func, wrongType bool)
11971197

11981198

1199-
The `Implements` predicate reports whether a type satisifies an
1199+
The `Implements` predicate reports whether a type satisfies an
12001200
interface type.
12011201
`MissingMethod` is like `Implements`, but instead of
12021202
returning false, it explains why a type does not satisfy the
@@ -1438,7 +1438,7 @@ is a subtle consequence of the
14381438
section in the Go spec: "Two
14391439
identifiers are different if they are spelled differently, or if they
14401440
appear in different packages and are not exported."
1441-
In practical terms, this means that a type may have have two methods
1441+
In practical terms, this means that a type may have two methods
14421442
(or two fields, or one of each) both named `f` so long as those
14431443
methods are defined in different packages, as in this example:
14441444

@@ -1544,7 +1544,7 @@ If you only need a single method, don't construct the
15441544

15451545

15461546
The next program generates a boilerplate
1547-
declaration of a new concrete type that satisifies an existing
1547+
declaration of a new concrete type that satisfies an existing
15481548
interface.
15491549
Here's an example:
15501550

0 commit comments

Comments
 (0)