1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:44:39 -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:
Albert Strasheim 2011-05-10 13:47:56 -04:00 committed by Russ Cox
parent 4c1e1b815b
commit 69a91663d2

View File

@ -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;
}
}