mirror of https://github.com/golang/go.git
parent
b749038246
commit
8cdb71017a
|
|
@ -27,7 +27,6 @@ type Vector struct {
|
|||
// BUG: workaround for non-constant allocation.
|
||||
// i must be a power of 10.
|
||||
func Alloc(i int) *[]Element {
|
||||
print "Alloc ", i, "\n";
|
||||
switch i {
|
||||
case 1:
|
||||
return new([1]Element);
|
||||
|
|
|
|||
Loading…
Reference in New Issue