]> Cypherpunks repositories - gostls13.git/commitdiff
fix pre-submit editing typo; text is garbled.
authorRob Pike <r@golang.org>
Fri, 16 Oct 2009 18:23:45 +0000 (11:23 -0700)
committerRob Pike <r@golang.org>
Fri, 16 Oct 2009 18:23:45 +0000 (11:23 -0700)
R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35841
CL=35841

doc/effective_go.html

index fc65d155d20c635848ceffc15bfd80581e73dfb0..29d656f82c7647333697ca61079b5e1ec849e02b 100644 (file)
@@ -1771,8 +1771,8 @@ it also satisfies all three interfaces:
 </p>
 <p>
 There's one important way in which embedding differs from subclassing.  When we embed a type,
-the methods of that type become methods of the out type
-<but when they are invoked the receiver of the method is the inner type, not the outer one.
+the methods of that type become methods of the outer type,
+but when they are invoked the receiver of the method is the inner type, not the outer one.
 In our example, when the <code>Read</code> method of a <code>bufio.ReadWriter</code> is
 invoked, it has the exactly the same effect as the forwarding method written out above;
 the receiver is the <code>reader</code> field of the <code>ReadWriter</code>, not the