Skip to content

Commit

Permalink
Remove two warnings and fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas authored and tgodzik committed Jul 9, 2024
1 parent 585cd92 commit bc3f077
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/main/scala/mdoc/PreModifier.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object PreModifier {
ServiceLoader.load(classOf[PreModifier], classLoader).iterator().asScala.toList
implicit val surface: Surface[Settings] = new Surface(Nil)
implicit val decoder: ConfDecoder[PreModifier] =
ConfDecoder.instanceF[PreModifier](_ => ConfError.message("unsupported").notOk)
ConfDecoder.from[PreModifier](_ => ConfError.message("unsupported").notOk)
implicit val encoder: ConfEncoder[PreModifier] =
ConfEncoder.StringEncoder.contramap(mod => s"<${mod.name}>")
}
2 changes: 1 addition & 1 deletion cli/src/main/scala/mdoc/StringModifier.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object StringModifier {
ServiceLoader.load(classOf[StringModifier], classLoader).iterator().asScala.toList
implicit val surface: Surface[Settings] = new Surface(Nil)
implicit val decoder: ConfDecoder[StringModifier] =
ConfDecoder.instanceF[StringModifier](_ => ConfError.message("unsupported").notOk)
ConfDecoder.from[StringModifier](_ => ConfError.message("unsupported").notOk)
implicit val encoder: ConfEncoder[StringModifier] =
ConfEncoder.StringEncoder.contramap(mod => s"<${mod.name}>")
}
2 changes: 1 addition & 1 deletion docs/js.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ file in a different directory than the markdown source.
By default, sbt-mdoc uses the `scalaJSModuleKind` sbt setting to determine the
module kind.

Outside of sbt, update the `js-module-kind` site variables to customizee the
Outside of sbt, update the `js-module-kind` site variables to customize the
module kind:

- `js-module-kind=NoModule`: don't export modules, the default value.
Expand Down

0 comments on commit bc3f077

Please sign in to comment.