Skip to content

Commit 2aa2776

Browse files
fix typo
1 parent 86c9d2f commit 2aa2776

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_ru/tour/pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ It would fail on pattern case: VoiceRecording(_, _)
317317
С другой стороны, проверка полноты требует, чтобы вы определили все подтипы базового типа в том же файле,
318318
что и базовый тип (иначе бы компилятор не знал все возможные варианты).
319319
Например, если вы попытаетесь определить новый тип `Notification` вне файла,
320-
который определяет `sealed trait Notfication`, это приведет к ошибке компиляции:
320+
который определяет `sealed trait Notification`, это приведет к ошибке компиляции:
321321

322322
```
323323
case class Telepathy(message: String) extends Notification

_tour/pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ On the flip side, exhaustivity checking requires you to define all the subtypes
285285
of the base type in the same file as the base type (otherwise, the compiler
286286
would not know what are all the possible cases). For instance, if you try
287287
to define a new type of `Notification` outside of the file that defines
288-
the `sealed trait Notfication`, it will produce a compilation error:
288+
the `sealed trait Notification`, it will produce a compilation error:
289289

290290
~~~
291291
case class Telepathy(message: String) extends Notification

0 commit comments

Comments
 (0)