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

Unified Diff: lib/src/utils.dart

Issue 2996603002: Update generic comment syntax (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « lib/src/css_class_set.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 16837b03db03f0d4b8aa6f7b31bcaef73a6dfb7d..909b899625137d1b74d28736c73514396f16d9ad 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -43,7 +43,7 @@ bool startsWithAny(String str, List<String> prefixes) {
}
// Like the python [:] operator.
-List/*<T>*/ slice/*<T>*/(List/*<T>*/ list, int start, [int end]) {
+List<T> slice<T>(List<T> list, int start, [int end]) {
if (end == null) end = list.length;
if (end < 0) end += list.length;
@@ -79,8 +79,7 @@ String formatStr(String format, Map data) {
data.forEach((key, value) {
var result = new StringBuffer();
var search = '%($key)';
- int last = 0,
- match;
+ int last = 0, match;
while ((match = format.indexOf(search, last)) >= 0) {
result.write(format.substring(last, match));
match += search.length;
« no previous file with comments | « lib/src/css_class_set.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698