Skip to content

Commit f05349a

Browse files
committed
Apply suggestions from review
1 parent 38ac7a3 commit f05349a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_overviews/scala3-book/control-structures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def pattern(x: Matchable): String = x match
992992
{% endtab %}
993993
{% endtabs %}
994994

995-
You can also write the code on the right side of the `=>` on multiple lines if you think is easier to read. Here’s one example:
995+
You can also write the code on the right side of the `=>` on multiple lines if you think it is easier to read. Here is one example:
996996

997997
{% tabs control-structures-31 class=tabs-scala-version %}
998998
{% tab 'Scala 2' for=control-structures-31 %}

_overviews/scala3-book/fun-partial-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Partial Functions
33
type: section
4-
description: This page shows how to use function variables in Scala.
4+
description: This page shows how to use partial functions in Scala.
55
num: 31
66
previous-page: fun-function-variables
77
next-page: fun-eta-expansion
@@ -22,7 +22,7 @@ val doubledOdds: PartialFunction[Int, Int] = {
2222
{% endtab %}
2323
{% endtabs %}
2424

25-
To check if a partial function is for an argument, use the `isDefinedAt` method:
25+
To check if a partial function is defined for an argument, use the `isDefinedAt` method:
2626

2727
{% tabs fun-partial-2 %}
2828
{% tab 'Scala 2 and 3' %}

0 commit comments

Comments
 (0)