From 33d4cbead73fd20f76e863dafbaf9bc57144064d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC?= Date: Sat, 28 May 2022 11:43:51 +0300 Subject: [PATCH] Fixed a typo in the documentation (reference/other-new-feature.export.md) --- docs/_docs/reference/other-new-features/export.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_docs/reference/other-new-features/export.md b/docs/_docs/reference/other-new-features/export.md index 949e4b579513..40e2ad9df248 100644 --- a/docs/_docs/reference/other-new-features/export.md +++ b/docs/_docs/reference/other-new-features/export.md @@ -24,7 +24,7 @@ class Copier: private val scanUnit = new Scanner export scanUnit.scan - export printUnit.{status => _, *} + export printUnit.{status as _, *} def status: List[String] = printUnit.status ++ scanUnit.status ``` @@ -55,8 +55,8 @@ one or more selectors `sel_i` that identify what gets an alias. Selectors can be of one of the following forms: - A _simple selector_ `x` creates aliases for all eligible members of `path` that are named `x`. - - A _renaming selector_ `x => y` creates aliases for all eligible members of `path` that are named `x`, but the alias is named `y` instead of `x`. - - An _omitting selector_ `x => _` prevents `x` from being aliased by a subsequent + - A _renaming selector_ `x as y` creates aliases for all eligible members of `path` that are named `x`, but the alias is named `y` instead of `x`. + - An _omitting selector_ `x as _` prevents `x` from being aliased by a subsequent wildcard selector. - A _given selector_ `given x` has an optional type bound `x`. It creates aliases for all eligible given instances that conform to either `x`, or `Any` if `x` is omitted, except for members that are named by a previous simple, renaming, or omitting selector. - A _wildcard selector_ `*` creates aliases for all eligible members of `path` except for given instances,