1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:10:22 -07:00

go/token: document postcondition of SetLines

Change-Id: Ie163deade396b3e298a93845b9ca4d52333ea82a
Reviewed-on: https://go-review.googlesource.com/22831
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Alan Donovan 2016-05-05 14:56:58 -07:00
parent 5bf9b39acc
commit 5f83bf6053

View File

@ -164,6 +164,7 @@ func (f *File) MergeLine(line int) {
// Each line offset must be larger than the offset for the previous line
// and smaller than the file size; otherwise SetLines fails and returns
// false.
// Callers must not mutate the provided slice after SetLines returns.
//
func (f *File) SetLines(lines []int) bool {
// verify validity of lines table