From 32073c827b9c64c1b5720739cad16014f2c96cec Mon Sep 17 00:00:00 2001 From: Ang Hao Yang Date: Tue, 24 Nov 2020 03:36:44 +0800 Subject: [PATCH] Update fully-qualified name of `FromString` in main-functions.md --- docs/docs/reference/changed-features/main-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference/changed-features/main-functions.md b/docs/docs/reference/changed-features/main-functions.md index b9e933329e11..874b31a1b626 100644 --- a/docs/docs/reference/changed-features/main-functions.md +++ b/docs/docs/reference/changed-features/main-functions.md @@ -30,7 +30,7 @@ This would generate a main program `happyBirthday` that could be called like thi Happy 23rd Birthday, Lisa and Peter! ``` A `@main` annotated method can be written either at the top-level or in a statically accessible object. The name of the program is in each case the name of the method, without any object prefixes. The `@main` method can have an arbitrary number of parameters. -For each parameter type there must be an instance of the `scala.util.FromString` type class +For each parameter type there must be an instance of the `scala.util.CommandLineParser.FromString` type class that is used to convert an argument string to the required parameter type. The parameter list of a main method can end in a repeated parameter that then takes all remaining arguments given on the command line.