From 9e0dc34b55765cdf794df3b1b291f95979d8ad54 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Thu, 10 Dec 2020 14:12:43 -0800 Subject: [PATCH] fix up FAQ --- _overviews/FAQ/index.md | 23 +++++++++++------------ _overviews/FAQ/initialization-order.md | 4 +--- index.md | 4 ++-- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/_overviews/FAQ/index.md b/_overviews/FAQ/index.md index 09af77d5c4..b7bc4f4522 100644 --- a/_overviews/FAQ/index.md +++ b/_overviews/FAQ/index.md @@ -65,6 +65,16 @@ get poor results, try surrounding the symbol with double quotes. ## Specific technical questions +### Why is my (abstract or overridden) `val` null? + + + +[answer]({{ site.baseurl }}/tutorials/FAQ/initialization-order.html) + ### Which type of collection should I choose? see the [Scala 2.13 Collections Guide](https://docs.scala-lang.org/overviews/collections-2.13/introduction.html) @@ -81,7 +91,7 @@ see the [Scala 2.13 Collections Guide](https://docs.scala-lang.org/overviews/col [answer on Stack Overflow](https://stackoverflow.com/a/5159356) -### How can I chain/nest implicit conversions? +### Can I chain or nest implicit conversions? [answer on Stack Overflow](https://stackoverflow.com/a/5332804) @@ -99,14 +109,3 @@ equivalents, such as `List[java.lang.Integer]`? One would hope so, but doing it that way was tried and it proved impossible. [This SO question](https://stackoverflow.com/questions/11167430/why-are-primitive-types-such-as-int-erased-to-object-in-scala) sadly lacks a concise explanation, but it does link to past discussions. - -## More questions - -{% assign overviews = site.overviews | sort: 'num' %} - diff --git a/_overviews/FAQ/initialization-order.md b/_overviews/FAQ/initialization-order.md index fcaf6d9471..ece62c6b9f 100644 --- a/_overviews/FAQ/initialization-order.md +++ b/_overviews/FAQ/initialization-order.md @@ -2,13 +2,11 @@ layout: multipage-overview title: Why is my abstract or overridden val null? overview-name: FAQ -partof: FAQ - -num: 9 permalink: /tutorials/FAQ/:title.html --- ## Example + To understand the problem, let's pick the following concrete example. abstract class A { diff --git a/index.md b/index.md index 570a7959e5..8413ba12e0 100644 --- a/index.md +++ b/index.md @@ -47,8 +47,8 @@ sections: description: "A handy cheatsheet covering the basics of Scala's syntax." icon: "fa fa-list" link: /cheatsheets/index.html - - title: "Scala FAQs" - description: "A list of frequently-asked questions about Scala language features and their answers." + - title: "Scala FAQ" + description: "Answers to frequently-asked questions about Scala." icon: "fa fa-question-circle" link: /tutorials/FAQ/index.html - title: "Language Spec"