diff --git a/coulomb-parser.html b/coulomb-parser.html index f2f360691..75abdb2fd 100644 --- a/coulomb-parser.html +++ b/coulomb-parser.html @@ -174,7 +174,7 @@

< "coulomb.units.info" *: EmptyTuple ] -// dslparser: RuntimeUnitParser = repl.MdocSession$MdocApp$$anon$1@6667b0d0 +// dslparser: RuntimeUnitParser = repl.MdocSession$MdocApp$$anon$1@139429a3

Parsing can fail, and so the parse method returns an Either object. In the following code, parsing a known unit meter results in a successful Right value.

This example illustrates that unit names parse into a corresponding fully qualified diff --git a/coulomb-pureconfig.html b/coulomb-pureconfig.html index c8fa85857..4a38170ee 100644 --- a/coulomb-pureconfig.html +++ b/coulomb-pureconfig.html @@ -221,7 +221,7 @@

< bandwidth: {value: 200, unit: "gigabyte / second"} } """) -// source: ConfigObjectSource = pureconfig.ConfigObjectSource@2bc4b6ab +// source: ConfigObjectSource = pureconfig.ConfigObjectSource@7600741b // this load will succeed, with automatic unit conversions val conf = source.load[Config] @@ -238,7 +238,7 @@

< bandwidth: {value: 200, unit: "gigabyte"} } """) -// bad: ConfigObjectSource = pureconfig.ConfigObjectSource@40be3f23 +// bad: ConfigObjectSource = pureconfig.ConfigObjectSource@f9b5224 // this load will fail because bandwidth units are incompatible val fail = bad.load[Config] @@ -281,7 +281,7 @@

// qsrc: ConfigObjectSource = pureconfig.ConfigObjectSource@4ffcd81a +// qsrc: ConfigObjectSource = pureconfig.ConfigObjectSource@a83a50a // loading integer value types will succeed when type matches the config qsrc.load[Quantity[Int, Mega * Byte]] @@ -331,7 +331,7 @@

// source: ConfigObjectSource = pureconfig.ConfigObjectSource@11c92d78 +// source: ConfigObjectSource = pureconfig.ConfigObjectSource@21699ccb // this load will succeed, with automatic unit conversions val conf = source.load[Config]