From 133d18cadede72d04b0b7beb01d51c900bafdf80 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Fri, 7 Feb 2020 19:43:38 +0100 Subject: [PATCH] doc(inline constValue): typo constvalue and toInt --- docs/docs/reference/metaprogramming/inline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/reference/metaprogramming/inline.md b/docs/docs/reference/metaprogramming/inline.md index c9bad79d5a28..379007b4821f 100644 --- a/docs/docs/reference/metaprogramming/inline.md +++ b/docs/docs/reference/metaprogramming/inline.md @@ -309,7 +309,7 @@ The `scala.compiletime` package contains helper definitions that provide support ### `constValue`, `constValueOpt`, and the `S` combinator -`constvalue` is a function that produces the constant value represented by a +`constValue` is a function that produces the constant value represented by a type. ```scala @@ -390,7 +390,7 @@ final val two = toIntT[Succ[Succ[Zero.type]]] ``` `erasedValue` is an `erased` method so it cannot be used and has no runtime -behavior. Since `toInt` performs static checks over the static type of `N` we +behavior. Since `toIntT` performs static checks over the static type of `N` we can safely use it to scrutinize its return type (`S[S[Z]]` in this case). ### `error`