Skip to content

Commit

Permalink
Deploy website
Browse files Browse the repository at this point in the history
Deploy website version based on f79d636
  • Loading branch information
Docusaurus bot committed Dec 20, 2024
1 parent 1948a7c commit 262dffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h2><a class="anchor" aria-hidden="true" id="confdecoder"></a><a href="#confdeco
<span class="hljs-keyword">if</span> (file.exists()) <span class="hljs-type">Configured</span>.ok(file)
<span class="hljs-keyword">else</span> <span class="hljs-type">ConfError</span>.fileDoesNotExist(file).notOk
}
<span class="hljs-comment">// fileDecoder: ConfDecoder[java.io.File] = metaconfig.ConfDecoder$$anonfun$flatMap$2@2f706ef0</span>
<span class="hljs-comment">// fileDecoder: ConfDecoder[java.io.File] = metaconfig.ConfDecoder$$anonfun$flatMap$2@5c9135d4</span>
fileDecoder.read(<span class="hljs-type">Conf</span>.fromString(<span class="hljs-string">".scalafmt.conf"</span>))
<span class="hljs-comment">// res11: Configured[java.io.File] = Ok(value = .scalafmt.conf)</span>
fileDecoder.read(<span class="hljs-type">Conf</span>.fromString(<span class="hljs-string">".foobar"</span>))
Expand Down Expand Up @@ -384,7 +384,7 @@ <h2><a class="anchor" aria-hidden="true" id="confencoder"></a><a href="#confenco
automatically derive a <code>ConfEncoder[T]</code> instance for any case class with
<code>generic.deriveEncoder</code>.</p>
<pre><code class="hljs css language-scala"><span class="hljs-keyword">implicit</span> <span class="hljs-keyword">val</span> encoder: <span class="hljs-type">ConfEncoder</span>[<span class="hljs-type">User</span>] = generic.deriveEncoder[<span class="hljs-type">User</span>]
<span class="hljs-comment">// encoder: ConfEncoder[User] = repl.MdocSession$MdocApp$$anon$1@7f0dbff2</span>
<span class="hljs-comment">// encoder: ConfEncoder[User] = repl.MdocSession$MdocApp$$anon$1@3caad6cc</span>

<span class="hljs-type">ConfEncoder</span>[<span class="hljs-type">User</span>].write(<span class="hljs-type">User</span>(<span class="hljs-string">"John"</span>, <span class="hljs-number">42</span>))
<span class="hljs-comment">// res13: Conf = Obj(</span>
Expand Down

0 comments on commit 262dffd

Please sign in to comment.