aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/error.go')
-rw-r--r--src/runtime/error.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runtime/error.go b/src/runtime/error.go
index 4280306ac5..de07bcb643 100644
--- a/src/runtime/error.go
+++ b/src/runtime/error.go
@@ -4,8 +4,6 @@
package runtime
-import "unsafe"
-
// The Error interface identifies a run time error.
type Error interface {
error
@@ -57,7 +55,7 @@ type stringer interface {
}
func typestring(x interface{}) string {
- e := (*eface)(unsafe.Pointer(&x))
+ e := efaceOf(&x)
return *e._type._string
}