Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: src/site/_includes/language-tour/generics/index.markdown

Issue 10788006: new site (Closed) Base URL: https://code.google.com/p/dartlang-site/@master
Patch Set: final patch Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/_includes/language-tour/generics/index.markdown
diff --git a/src/site/_includes/language-tour/generics/index.markdown b/src/site/_includes/language-tour/generics/index.markdown
index bb0f7cbbe903b5e2ebb1646805561f3220a1102c..753027e4fda8f1c229a37dd6e9b974f07a9a89ac 100644
--- a/src/site/_includes/language-tour/generics/index.markdown
+++ b/src/site/_includes/language-tour/generics/index.markdown
@@ -94,10 +94,12 @@ var pages = <String>{ // Specify value type: String
'humans.txt':'We are people, not machines' };
{% endhighlight %}
-<aside class="note" markdown="1">
- **Note:**
- Map literals always have string _keys_.
- The type before the brace specifies the type of the map's _values_.
+<aside>
+ <div class="alert alert-info">
+ <strong>Tip:</strong>
+ Map literals always have string _keys_.
+ The type before the brace specifies the type of the map's _values_.
+ </div>
</aside>
</section>
@@ -150,17 +152,18 @@ The solution is to either
check each item's type or
wrap item-manipulation code in an [exception handler](#exceptions).
-<aside class="note" markdown="1">
- **Note:**
- In contrast,
- generics in Java use _erasure_,
- which means that generic type parameters are removed at runtime.
- In Java, you can test whether an object is a List,
- but you can't test whether it's a List&lt;String>.
+<aside>
+ <div class="alert alert-info">
+ <strong>Note:</strong>
+ In contrast,
+ generics in Java use _erasure_,
+ which means that generic type parameters are removed at runtime.
+ In Java, you can test whether an object is a List,
+ but you can't test whether it's a <code>List&lt;String&gt;</code>.
+ </div>
</aside>
</section>
-
<section id="generics-summary" markdown="1">
### Summary of generics

Powered by Google App Engine
This is Rietveld 408576698