mirror of
https://github.com/go-gitea/gitea
synced 2025-07-06 10:37:20 +00:00
4
vendor/github.com/yuin/goldmark/text/segment.go
generated
vendored
4
vendor/github.com/yuin/goldmark/text/segment.go
generated
vendored
@ -7,7 +7,7 @@ import (
|
||||
|
||||
var space = []byte(" ")
|
||||
|
||||
// A Segment struct holds information about source potisions.
|
||||
// A Segment struct holds information about source positions.
|
||||
type Segment struct {
|
||||
// Start is a start position of the segment.
|
||||
Start int
|
||||
@ -197,7 +197,7 @@ func (s *Segments) Sliced(lo, hi int) []Segment {
|
||||
return s.values[lo:hi]
|
||||
}
|
||||
|
||||
// Clear delete all element of the collction.
|
||||
// Clear delete all element of the collection.
|
||||
func (s *Segments) Clear() {
|
||||
s.values = nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user