Skip to content

Commit d063965

Browse files
authored
Fix expansion of Uri and mispelling of identifier (#6019)
Fixes #5995
1 parent f732450 commit d063965

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/effective-dart/style.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ or `HttpSftp` for the latter.
218218

219219
Two-letter abbreviations and acronyms are the exception.
220220
If both letters are capitalized in English,
221-
then they should both stay capitalized when used in an identifer.
221+
then they should both stay capitalized when used in an identifier.
222222
Otherwise, capitalize it like a word.
223223

224224
```dart tag=good
225225
// Longer than two letters, so always like a word:
226226
Http // "hypertext transfer protocol"
227227
Nasa // "national aeronautics and space administration"
228-
Uri // "uniform resource locator"
228+
Uri // "uniform resource identifier"
229229
Esq // "esquire"
230230
Ave // "avenue"
231231
@@ -243,7 +243,7 @@ Rd // "road"
243243
```dart tag=bad
244244
HTTP // "hypertext transfer protocol"
245245
NASA // "national aeronautics and space administration"
246-
URI // "uniform resource locator"
246+
URI // "uniform resource identifier"
247247
esq // "esquire"
248248
Ave // "avenue"
249249
@@ -257,7 +257,7 @@ RD // "road"
257257
```
258258

259259
When any form of abbreviation comes at the beginning
260-
of a lowerCamelCase identifier, lowercase the identifer:
260+
of a `lowerCamelCase` identifier, the abbreviation should be all lowercase:
261261

262262
```dart
263263
var httpConnection = connect();

0 commit comments

Comments
 (0)