Commit 29a87c1 Docusaurus bot
committed
1 parent 2ee0190 commit 29a87c1 Copy full SHA for 29a87c1
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ <h2><a class="anchor" aria-hidden="true" id="confdecoder"></a><a href="#confdeco
341
341
< span class ="hljs-keyword "> if</ span > (file.exists()) < span class ="hljs-type "> Configured</ span > .ok(file)
342
342
< span class ="hljs-keyword "> else</ span > < span class ="hljs-type "> ConfError</ span > .fileDoesNotExist(file).notOk
343
343
}
344
- < span class ="hljs-comment "> // fileDecoder: ConfDecoder[java.io.File] = metaconfig.ConfDecoder$$anonfun$flatMap$2@6a25fa9f </ span >
344
+ < span class ="hljs-comment "> // fileDecoder: ConfDecoder[java.io.File] = metaconfig.ConfDecoder$$anonfun$flatMap$2@487154c7 </ span >
345
345
fileDecoder.read(< span class ="hljs-type "> Conf</ span > .fromString(< span class ="hljs-string "> ".scalafmt.conf"</ span > ))
346
346
< span class ="hljs-comment "> // res11: Configured[java.io.File] = Ok(value = .scalafmt.conf)</ span >
347
347
fileDecoder.read(< span class ="hljs-type "> Conf</ span > .fromString(< span class ="hljs-string "> ".foobar"</ span > ))
@@ -384,7 +384,7 @@ <h2><a class="anchor" aria-hidden="true" id="confencoder"></a><a href="#confenco
384
384
automatically derive a < code > ConfEncoder[T]</ code > instance for any case class with
385
385
< code > generic.deriveEncoder</ code > .</ p >
386
386
< 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 > ]
387
- < span class ="hljs-comment "> // encoder: ConfEncoder[User] = repl.MdocSession$MdocApp$$anon$1@5752b723 </ span >
387
+ < span class ="hljs-comment "> // encoder: ConfEncoder[User] = repl.MdocSession$MdocApp$$anon$1@2ad88b8c </ span >
388
388
389
389
< 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 > ))
390
390
< span class ="hljs-comment "> // res13: Conf = Obj(</ span >
You can’t perform that action at this time.
0 commit comments