mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
[docs] Fix small typo in code example for Function
Change-Id: Ia762b823c51724229c0eb452a02885ff0f8bc7af CoreLibraryReviewExempt: Changes documentation only. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/299140 Commit-Queue: Nicholas Shahan <nshahan@google.com> Auto-Submit: Nicholas Shahan <nshahan@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com>
This commit is contained in:
parent
9d0781bd9b
commit
a7854364a6
|
@ -95,7 +95,7 @@ part of dart.core;
|
|||
/// ```dart
|
||||
/// Function fun = (int x) => "$x";
|
||||
///
|
||||
/// var fun2 = f.call; // Inferred type of `fun2` is `Function`.
|
||||
/// var fun2 = fun.call; // Inferred type of `fun2` is `Function`.
|
||||
///
|
||||
/// print(fun2.call(1)); // Prints "1";
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue