clean up docs for two rules
diff --git a/lib/src/rules/avoid_as.dart b/lib/src/rules/avoid_as.dart
index 6b4903a..818c629 100644
--- a/lib/src/rules/avoid_as.dart
+++ b/lib/src/rules/avoid_as.dart
@@ -11,8 +11,6 @@
const _details = r'''
-From the [flutter style guide](https://github.com/flutter/engine/blob/master/sky/specs/style-guide.md):
-
**AVOID** using `as`.
If you know the type is correct, use an assertion or assign to a more
@@ -27,14 +25,6 @@
**GOOD:**
```
-Person person = pm;
-person.firstName = 'Seth';
-```
-
-or
-
-**GOOD:**
-```
if (pm is Person)
pm.firstName = 'Seth';
```
@@ -46,7 +36,6 @@
try {
(pm as Person).firstName = 'Seth';
} on CastError { }
-
```
Note that an exception is made in the case of `dynamic` since the cast has no
diff --git a/lib/src/rules/prefer_const_declarations.dart b/lib/src/rules/prefer_const_declarations.dart
index 7732135..3494d9f 100644
--- a/lib/src/rules/prefer_const_declarations.dart
+++ b/lib/src/rules/prefer_const_declarations.dart
@@ -20,19 +20,19 @@
**GOOD:**
```
-const o = const [];
+const o = <int>[];
class A {
- static const o = const [];
+ static const o = <int>[];
}
```
**BAD:**
```
-final o = const [];
+final o = const <int>[];
class A {
- static final o = const [];
+ static final o = const <int>[];
}
```