Skip to content

Commit 1b4ae5a

Browse files
srawlinsCommit Queue
authored and
Commit Queue
committed
Refer to unnamed constructors in doc comments with '.new'
Cleanup for dart-lang/dartdoc#3531 This makes these comment references more idiomatic, I think more readable, and supports dropping the leading `new ` syntax in doc comments. Change-Id: Id832ad14d9ea08fe03fe3125065755f49b1b93ed CoreLibraryReviewExempt: doc comment only change Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330683 Reviewed-by: Devon Carew <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent f303110 commit 1b4ae5a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sdk/lib/convert/convert.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
/// The converter finds characters that are significant in HTML source and
126126
/// replaces them with corresponding HTML entities.
127127
///
128-
/// Custom escape modes can be created using the [HtmlEscapeMode.HtmlEscapeMode]
128+
/// Custom escape modes can be created using the [HtmlEscapeMode.new]
129129
/// constructor.
130130
///
131131
/// Example:

sdk/lib/convert/html_escape.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const HtmlEscape htmlEscape = HtmlEscape();
3636
/// All modes require escaping of `&` (ampersand) characters, and may
3737
/// enable escaping of more characters.
3838
///
39-
/// Custom escape modes can be created using the [HtmlEscapeMode.HtmlEscapeMode]
39+
/// Custom escape modes can be created using the [HtmlEscapeMode.new]
4040
/// constructor.
4141
///
4242
/// Example:

sdk/lib/core/uri.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const String _hexDigits = "0123456789ABCDEF";
2626

2727
/// A parsed URI, such as a URL.
2828
///
29-
/// To create a URI with specific components, use [new Uri]:
29+
/// To create a URI with specific components, use [Uri.new]:
3030
/// ```dart
3131
/// var httpsUri = Uri(
3232
/// scheme: 'https',

sdk/lib/isolate/isolate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class IsolateSpawnException implements Exception {
6868
/// The `Isolate` object provided by a spawn operation will have the
6969
/// control port and capabilities needed to control the isolate.
7070
/// New isolate objects can be created without some of these capabilities
71-
/// if necessary, using the [Isolate.Isolate] constructor.
71+
/// if necessary, using the [Isolate.new] constructor.
7272
///
7373
/// An `Isolate` object cannot be sent over a `SendPort`, but the control port
7474
/// and capabilities can be sent, and can be used to create a new functioning

0 commit comments

Comments
 (0)