Code refactoring

This commit is contained in:
2022-01-14 15:46:36 +01:00
parent 2163db94d0
commit 45a1765a03
3 changed files with 95 additions and 87 deletions

View File

@ -11,7 +11,7 @@ type _BuildAlignArena struct {
bufferB []byte
}
// BuildAlignArena define memory arena usable by the
// BuildAlignArena defines memory arena usable by the
// BuildAlignment function. The same arena can be reused
// from alignment to alignment to limit memory allocation
// and desallocation process.
@ -23,7 +23,7 @@ type BuildAlignArena struct {
// type.
var NilBuildAlignArena = BuildAlignArena{nil}
// MakeBuildAlignArena make a new arena for aligning two sequences
// MakeBuildAlignArena makes a new arena for aligning two sequences
// of maximum length indicated by lseqA and lseqB.
func MakeBuildAlignArena(lseqA, lseqB int) BuildAlignArena {
a := _BuildAlignArena{