Skip to content

Commit cbc1181

Browse files
mox692vpolet
authored and
vpolet
committed
[MINOR][DOC] Fixed deprecated procedure syntax
### What changes were proposed in this pull request? The scala sample code in the quick-start chapter was using deprecated syntax, so this PR has fixed it. ### Why are the changes needed? procedure syntax (SI-7605) is now deprecated, and some editors or IDEs warn against this code. scala/bug#7605 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? `SKIP_API=1 bundle exec jekyll build` on local. Closes apache#42400 from mox692/deprecate_procedure_syntax. Authored-by: mox692 <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent 25a9e3d commit cbc1181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ named `SimpleApp.scala`:
313313
import org.apache.spark.sql.SparkSession
314314

315315
object SimpleApp {
316-
def main(args: Array[String]) {
316+
def main(args: Array[String]): Unit = {
317317
val logFile = "YOUR_SPARK_HOME/README.md" // Should be some file on your system
318318
val spark = SparkSession.builder.appName("Simple Application").getOrCreate()
319319
val logData = spark.read.textFile(logFile).cache()

0 commit comments

Comments
 (0)