Skip to content

Commit 1b9267f

Browse files
committed
remove comment line and fix link?
1 parent 8aab15a commit 1b9267f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/content/effective-dart/usage.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ prevpage:
88
url: /effective-dart/documentation
99
title: Documentation
1010
---
11+
<?code-excerpt plaster="none"?>
1112
<?code-excerpt replace="/([A-Z]\w*)\d\b/$1/g"?>
1213
<?code-excerpt path-base="misc/lib/effective_dart"?>
1314

@@ -325,7 +326,7 @@ Of course, if `null` is a valid initialized value for the variable,
325326
then it probably does make sense to have a separate boolean field.
326327

327328

328-
### CONSIDER work arounds to bypass type promotion limitations
329+
### CONSIDER work arounds to enable type promotion for nullable fields
329330

330331
Checking that a nullable variable is not equal to `null` promotes the variable
331332
to a non-nullable type. That lets you access members on the variable and pass it
@@ -355,7 +356,6 @@ class UploadException {
355356
return 'Could not complete upload to ${response.url} '
356357
'(error code ${response.errorCode}): ${response.reason}.';
357358
}
358-
// ···
359359
return 'Could not upload (no response).';
360360
}
361361
}
@@ -374,7 +374,6 @@ class UploadException {
374374
375375
@override
376376
String toString() {
377-
// ···
378377
final response = this.response;
379378
if (response != null) {
380379
return 'Could not complete upload to ${response.url} '

src/content/guides/whats-new.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ we made the following changes to this site:
126126
* Reorganized and simplified site infrastructure across the board, in preparation
127127
to [move away from using Jekyll][].
128128

129-
[type promotion]: /effective-dart/usage#consider-assigning-a-nullable-field-to-a-local-variable-to-enable-type-promotion
129+
[type promotion]: /effective-dart/usage#consider-work-arounds-to-enable-type-promotion-for-nullable-fields
130130
[Understanding Null Safety]: /null-safety/understanding-null-safety
131131
[C interop]: /interop/c-interop#native-assets
132132
[Breaking changes]: /resources/breaking-changes

0 commit comments

Comments
 (0)