moretypes: explain pointer indirection
Fixes golang/go#14040
Change-Id: I377207e2ce3f41736368a5fbd4ba11bbf2e098da
Reviewed-on: https://go-review.googlesource.com/19941
Reviewed-by: Francesc Campoy Flores <campoy@golang.org>
diff --git a/content/moretypes.article b/content/moretypes.article
index 904a578..958d496 100644
--- a/content/moretypes.article
+++ b/content/moretypes.article
@@ -47,7 +47,10 @@
Struct fields can be accessed through a struct pointer.
-The indirection through the pointer is transparent.
+To access the field `X` of a structwhen we have the struct pointer `p` we could
+write `(*p).X`.
+However, that notation is cumbersome, so the language permits us instead to
+write just `p.X`, without the explicit dereference.
.play moretypes/struct-pointers.go