mirror of
https://github.com/golang/go
synced 2024-11-24 18:10:02 -07:00
runtime: add newline to "finalizer already set" error
R=rsc, bradfitz CC=golang-dev https://golang.org/cl/4523047
This commit is contained in:
parent
4c1e1b815b
commit
69a91663d2
@ -487,7 +487,7 @@ func SetFinalizer(obj Eface, finalizer Eface) {
|
||||
nret = (nret + sizeof(void*)-1) & ~(sizeof(void*)-1);
|
||||
|
||||
if(runtime·getfinalizer(obj.data, 0)) {
|
||||
runtime·printf("runtime.SetFinalizer: finalizer already set");
|
||||
runtime·printf("runtime.SetFinalizer: finalizer already set\n");
|
||||
goto throw;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user