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

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

Issue 3004453002: Fix `Function.apply` dartdoc. (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 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.
« 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