Chromium Code Reviews| Index: sdk/lib/core/function.dart |
| diff --git a/sdk/lib/core/function.dart b/sdk/lib/core/function.dart |
| index 5a64e96bb3f3e93bb32227d155029ac1782f541d..9345590100d8e3ab325ddf5b3926768875bd6c22 100644 |
| --- a/sdk/lib/core/function.dart |
| +++ b/sdk/lib/core/function.dart |
| @@ -22,13 +22,17 @@ abstract class Function { |
| * if it expects different parameters. |
| * |
| * Example: |
| - * Map<Symbol, dynamic> namedArguments = new Map<Symbol, dynamic>(); |
| - * namedArguments[const Symbol("f")] = 4; |
| - * namedArguments[const Symbol("g")] = 5; |
| - * Function.apply(foo, [1,2,3], namedArguments); |
| + * ``` |
| + * var namedArguments = new Map<Symbol, dynamic>(); |
| + * namedArguments[const Symbol("f")] = 4; |
| + * namedArguments[const Symbol("g")] = 5; |
| + * Function.apply(foo, [1,2,3], namedArguments); |
| + * ``` |
|
Lasse Reichstein Nielsen
2017/08/23 05:53:31
How about just doing:
Function.apply(foo, [1, 2
floitsch
2017/08/23 18:09:00
done in https://codereview.chromium.org/3002193002
|
| * |
| * gives exactly the same result as |
| - * foo(1, 2, 3, f: 4, g: 5). |
| + * ``` |
| + * foo(1, 2, 3, f: 4, g: 5). |
| + * ``` |
| * |
| * If [positionalArguments] is null, it's considered an empty list. |
| * If [namedArguments] is omitted or null, it is considered an empty map. |