|
1 | 1 | <!--{
|
2 | 2 | "Title": "The Go Programming Language Specification",
|
3 |
| - "Subtitle": "Version of January 17, 2018", |
| 3 | + "Subtitle": "Version of January 23, 2018", |
4 | 4 | "Path": "/ref/spec"
|
5 | 5 | }-->
|
6 | 6 |
|
@@ -694,9 +694,8 @@ <h2 id="Types">Types</h2>
|
694 | 694 | </pre>
|
695 | 695 |
|
696 | 696 | <p>
|
697 |
| -Named instances of the boolean, numeric, and string types are |
698 |
| -<a href="#Predeclared_identifiers">predeclared</a>. |
699 |
| -Other named types are introduced with <a href="#Type_declarations">type declarations</a>. |
| 697 | +The language <a href="#Predeclared_identifiers">predeclares</a> certain type names. |
| 698 | +Others are introduced with <a href="#Type_declarations">type declarations</a>. |
700 | 699 | <i>Composite types</i>—array, struct, pointer, function,
|
701 | 700 | interface, slice, map, and channel types—may be constructed using
|
702 | 701 | type literals.
|
@@ -1025,8 +1024,8 @@ <h3 id="Struct_types">Struct types</h3>
|
1025 | 1024 | </p>
|
1026 | 1025 |
|
1027 | 1026 | <p>
|
1028 |
| -Given a struct type <code>S</code> and a type named <code>T</code>, |
1029 |
| -promoted methods are included in the method set of the struct as follows: |
| 1027 | +Given a struct type <code>S</code> and a <a href="#Type_definitions">defined type</a> |
| 1028 | +<code>T</code>, promoted methods are included in the method set of the struct as follows: |
1030 | 1029 | </p>
|
1031 | 1030 | <ul>
|
1032 | 1031 | <li>
|
@@ -2643,8 +2642,8 @@ <h3 id="Selectors">Selectors</h3>
|
2643 | 2642 | </li>
|
2644 | 2643 |
|
2645 | 2644 | <li>
|
2646 |
| -As an exception, if the type of <code>x</code> is a named pointer type |
2647 |
| -and <code>(*x).f</code> is a valid selector expression denoting a field |
| 2645 | +As an exception, if the type of <code>x</code> is a <a href="#Type_definitions">defined</a> |
| 2646 | +pointer type and <code>(*x).f</code> is a valid selector expression denoting a field |
2648 | 2647 | (but not a method), <code>x.f</code> is shorthand for <code>(*x).f</code>.
|
2649 | 2648 | </li>
|
2650 | 2649 |
|
|
0 commit comments