← dlang

autoAndtypeof.d

167906dcebd6f423d97ff375aacf340a8b083bb1 · ovidiucs · Sep 6, 2015 22:48

+1 −1 · 1 file changed

  • autoAndtypeof.d +1 −1
diff --git a/autoAndtypeof.d b/autoAndtypeof.d
index 21c6790..3b25c29 100644
--- a/autoAndtypeof.d
+++ b/autoAndtypeof.d
@@ -6,5 +6,5 @@ void main()
    auto distance = 1.2;
    auto greeting = "Hello";
 
-   writeln(duration.stringof,distance.stringof,greeting.stringof);
+   writeln(typeid(duration), typeid(distance), typeid(greeting));
 }