From 3a3773c8cb439034094025cf2f85ed52535c3e1f Mon Sep 17 00:00:00 2001
From: Brett Cannon
Date: Fri, 8 May 2015 10:41:15 -0400
Subject: [PATCH] doc/effective_go: make function signature match function body
In the Slices section of Effective Go, the os package's File.Read
function is used as an example. Unfortunately the function signature
does not match the function's code in the example, nor the os package's
documentation. This change updates the function signature to match
the os package and the pre-existing function code.
Change-Id: Iae9f30c898d3a1ff8d47558ca104dfb3ff07112c
Reviewed-on: https://go-review.googlesource.com/9845
Reviewed-by: Rob Pike
---
doc/effective_go.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/effective_go.html b/doc/effective_go.html
index d6be37994b..8a827d0433 100644
--- a/doc/effective_go.html
+++ b/doc/effective_go.html
@@ -1382,7 +1382,7 @@ limit of how much data to read. Here is the signature of the
os
:
-func (file *File) Read(buf []byte) (n int, err error)
+func (f *File) Read(buf []byte) (n int, err error)
The method returns the number of bytes read and an error value, if
--
2.48.1