mirror of
https://github.com/gonum/gonum.git
synced 2025-10-17 04:31:03 +08:00
Avoid confusion with the name realloc
Fixes issue 1.
This commit is contained in:
@@ -381,7 +381,9 @@ func max(a, b int) int {
|
||||
return b
|
||||
}
|
||||
|
||||
func realloc(f []float64, l int) []float64 {
|
||||
// use returns a float64 slice with l elements, using f if it
|
||||
// has the necessary capacity, otherwise creating a new slice.
|
||||
func use(f []float64, l int) []float64 {
|
||||
if l < cap(f) {
|
||||
return f[:l]
|
||||
}
|
||||
|
Reference in New Issue
Block a user