Skip to content

Commit

Permalink
fixed typos in the russian language
Browse files Browse the repository at this point in the history
  • Loading branch information
greexon committed Jan 25, 2017
1 parent cb7be83 commit 1a2637a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/ru/collections.textile
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ scala> extensions.filter((namePhone: (String, Int)) => namePhone._2 < 200)
res0: scala.collection.immutable.Map[String,Int] = Map((steve,100), (bob,101))
</pre>

Т.к. в результате вы получаете кортеж, то вам приходиться тащить ключи и значения с их позиционными функциями доступа. Да уж!
Т.к. в результате вы получаете кортеж, то вам приходится тащить ключи и значения с их позиционными функциями доступа. Да уж!

К счастью, мы можем использовать сопоставление с образцом, чтобы извлечь ключ и значение.

Expand Down
2 changes: 1 addition & 1 deletion web/ru/type-basics.textile
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ scala> class Node[+T](x: T) { def sub(v: T): Node[T] = new Node(v) }
^
</pre>

Напомним, что аргументы метода являются контрвариантными, и поэтому, если мы выполняем нашу замену, используя теже классы, как и раньше:
Напомним, что аргументы метода являются контрвариантными, и поэтому, если мы выполняем нашу замену, используя те же классы, как и раньше:

<pre>
class Node[Bird](x: Bird) { def sub(v: Bird): Node[Bird] = new Node(v) }
Expand Down

0 comments on commit 1a2637a

Please sign in to comment.