Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: samples/clock/clock.dart

Issue 11748016: Make ~/, round, ceil, floor, truncate return ints. Remove toInt. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Checked mode fixes. Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/clock/clock.dart
diff --git a/samples/clock/clock.dart b/samples/clock/clock.dart
index ac06bc3a386bec6fc04200c5ad9f128a98c3311f..47e4f8a5e446dc4ce9b5a7c22e3af713ee6427d7 100644
--- a/samples/clock/clock.dart
+++ b/samples/clock/clock.dart
@@ -25,7 +25,7 @@ void showFps(num fps) {
} else {
fpsAverage = fps * 0.05 + fpsAverage * 0.95;
- query("#notes").text = "${fpsAverage.round().toInt()} fps";
+ query("#notes").text = "${fpsAverage.round()} fps";
}
}

Powered by Google App Engine
This is Rietveld 408576698