diff --git a/src/site/_includes/language-tour/3-built-in-types/lists.html b/src/site/_includes/language-tour/3-built-in-types/lists.html index c21ae6eb5..f28590e7c 100644 --- a/src/site/_includes/language-tour/3-built-in-types/lists.html +++ b/src/site/_includes/language-tour/3-built-in-types/lists.html @@ -120,8 +120,8 @@

List and Collection methods

returns a new collection with only the elements that satisfy a condition. The every() and some() methods -check whether a collection matches -every condition or at least one condition, respectively. +check whether every item in a collection matches a condition +or if at least one item matches a condition, respectively. The sort() method lets you sort a list using any criteria you like.

diff --git a/src/site/_includes/language-tour/3-built-in-types/numbers.html b/src/site/_includes/language-tour/3-built-in-types/numbers.html index fce2e9407..d6b84571b 100644 --- a/src/site/_includes/language-tour/3-built-in-types/numbers.html +++ b/src/site/_includes/language-tour/3-built-in-types/numbers.html @@ -57,12 +57,14 @@

{% highlight dart %} +#import('dart:math'); // Needed for math functions. See libraries section + // String -> int -var one = Math.parseInt("1"); +var one = parseInt("1"); assert(one == 1); // String -> double -var onePointOne = Math.parseDouble("1.1"); +var onePointOne = parseDouble("1.1"); assert(onePointOne == 1.1); // int -> String @@ -80,7 +82,7 @@

{% highlight dart %} -assert((3 < 1) == 6); // 0011 << 1 == 0110 +assert((3 << 1) == 6); // 0011 << 1 == 0110 assert((3 >> 1) == 1); // 0011 >> 1 == 0001 assert((3 | 4) == 7); // 0011 | 0100 == 0111 {% endhighlight %}