Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for lastComment (0.13 sec)

  1. src/go/doc/example.go

    	}
    	newComments := make([]*ast.CommentGroup, len(comments)-1)
    	copy(newComments, comments[:i])
    	copy(newComments[i:], comments[i+1:])
    	return newBody, newComments
    }
    
    // lastComment returns the last comment inside the provided block.
    func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
    	if b == nil {
    		return
    	}
    	pos, end := b.Pos(), b.End()
    	for j, cg := range c {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top