Commit 69a91663 authored by Albert Strasheim's avatar Albert Strasheim Committed by Russ Cox

runtime: add newline to "finalizer already set" error

R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/4523047
parent 4c1e1b81
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment