From 4c25b45982d4e16785ddbc17f66d075d7aaf97ff Mon Sep 17 00:00:00 2001 From: PhoenixmitX <39215472+PhoenixmitX@users.noreply.github.com> Date: Fri, 4 Aug 2023 09:21:38 +0200 Subject: [PATCH] correct behavior of Random --- _tour/pattern-matching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/pattern-matching.md b/_tour/pattern-matching.md index d66bf843e0..aa870d133e 100644 --- a/_tour/pattern-matching.md +++ b/_tour/pattern-matching.md @@ -44,7 +44,7 @@ x match ``` {% endtab %} {% endtabs %} -The `val x` above is a random integer between 0 and 10. `x` becomes the left operand of the `match` operator and on the right is an expression with four cases. The last case `_` is a "catch all" case for any other possible `Int` values. Cases are also called _alternatives_. +The `val x` above is a random integer between 0 and 9. `x` becomes the left operand of the `match` operator and on the right is an expression with four cases. The last case `_` is a "catch all" case for any other possible `Int` values. Cases are also called _alternatives_. Match expressions have a value. {% tabs pattern-matching-2 class=tabs-scala-version %}