Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit fecc816

Browse files
eernstgcommit-bot@chromium.org
authored and
commit-bot@chromium.org
committed
Update Dartdoc of Function
The Dartdoc of the class `Function` claimed that any class with a `call` method is a subtype of `Function`. That rule is highly obsolete, and this PR removes it. Change-Id: I56318f6c6d8a19007c2b6259bc7d84532cd44707 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154004 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
1 parent eb38d2a commit fecc816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/lib/core/function.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ part of dart.core;
77
/**
88
* The base class for all function types.
99
*
10-
* A function value, or an instance of a class with a "call" method, is a
11-
* subtype of a function type, and as such, a subtype of [Function].
10+
* The run-time type of a function object is subtype of a function type,
11+
* and as such, a subtype of [Function].
1212
*/
1313
abstract class Function {
1414
/**

0 commit comments

Comments
 (0)