Permalink
Browse files

named parameter for File.open

  • Loading branch information...
1 parent 574540f commit 7af90a0736db1e5f419a4fbd8ebd983fb48de68b @a14n a14n committed Apr 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/create_bootstrap.dart
@@ -35,7 +35,7 @@ createFile(Path source, Path target) {
final js = JS_PATTERN.firstMatch(text).group(1);
final out = new File.fromPath(target);
out.create()
- .then((out) => out.open(FileMode.WRITE)
+ .then((out) => out.open(mode: FileMode.WRITE)
.then((file) => file.writeString(HEADER)
.then((file) => file.writeString(js)
.then((file) => file.close()))));

0 comments on commit 7af90a0

Please sign in to comment.