Commit 3a3773c8 authored by Brett Cannon's avatar Brett Cannon Committed by Rob Pike
Browse files

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: default avatarRob Pike <r@golang.org>
parent e8fc93ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment