Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Updating documentation links for exercises i_2, i_3, and i_4 #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package i_introduction._3_Default_Arguments

import util.TODO
import util.doc2
import util.doc3

fun todoTask3(): Nothing = TODO(
"""
Expand All @@ -11,7 +11,7 @@ fun todoTask3(): Nothing = TODO(
You have to add 'foo' parameters and implement its body.
Uncomment the commented code and make it compile.
""",
documentation = doc2(),
documentation = doc3(),
references = { name: String -> JavaCode3().foo(name); foo(name) })

fun foo(name: String): String = todoTask3()
Expand Down
6 changes: 5 additions & 1 deletion src/util/LinksToDocumentation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ package util
fun doc0() {}

/**
* @see <a href="https://kotlinlang.org/docs/reference/functions.html#default-arguments">Default and named arguments</a>
* @see <a href="https://kotlinlang.org/docs/reference/functions.html#named-arguments">Named arguments</a>
*/
fun doc2() {}

/**
* @see <a href="https://kotlinlang.org/docs/reference/functions.html#default-arguments">Default arguments</a>
*/
fun doc3() {}

/**
* @see <a href="https://kotlinlang.org/docs/reference/lambdas.html">Lambdas</a>
Expand Down