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

Unified Diff: sdk/lib/core/function.dart

Issue 3002193002: Simplify doc for Function.apply. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/function.dart
diff --git a/sdk/lib/core/function.dart b/sdk/lib/core/function.dart
index 9345590100d8e3ab325ddf5b3926768875bd6c22..7ff40e9dac90f7a4f83eed0c4c9e104242eceec3 100644
--- a/sdk/lib/core/function.dart
+++ b/sdk/lib/core/function.dart
@@ -23,10 +23,7 @@ abstract class Function {
*
* Example:
* ```
- * var namedArguments = new Map<Symbol, dynamic>();
- * namedArguments[const Symbol("f")] = 4;
- * namedArguments[const Symbol("g")] = 5;
- * Function.apply(foo, [1,2,3], namedArguments);
+ * Function.apply(foo, [1,2,3], {#f: 4, #g: 5});
* ```
*
* gives exactly the same result as
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698