Skip to content

Commit 8de3d3c

Browse files
committed
Update documentation
1 parent 09af282 commit 8de3d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/vertexset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type interval struct {
2222
index int // index of a in the whole set
2323
}
2424

25-
// updates the index values.
25+
// update updates the index values.
2626
func (s VertexSet) update() {
2727
prev := 0
2828
for i, in := range s.set {
@@ -46,7 +46,7 @@ func Range(a, b int) VertexSet {
4646

4747
// Vertex returns a set containing the single vertex v.
4848
func Vertex(v int) VertexSet {
49-
return Range(v, v+1)
49+
return VertexSet{[]interval{{v, v + 1, 0}}}
5050
}
5151

5252
// size returns the number of elements in this set, or -1 for the universe.

0 commit comments

Comments
 (0)