Skip to content

Commit

Permalink
♻️ Make singular to be more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
MystPi committed Mar 5, 2024
1 parent 9db16a0 commit dd1014c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pprint.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub type Config {
Config(
style_mode: StyleMode,
bit_array_mode: BitArrayMode,
labels_mode: LabelsMode,
label_mode: LabelMode,
)
}

Expand Down Expand Up @@ -47,7 +47,7 @@ pub type BitArrayMode {
/// This option only affects the JavaScript target since Erlang has a different
/// runtime representation of custom types that omits labels.
///
pub type LabelsMode {
pub type LabelMode {
/// Show field labels in custom types.
/// ```
/// Foo(42, bar: "bar", baz: "baz")
Expand Down Expand Up @@ -242,7 +242,7 @@ fn pretty_custom_type(

let fields =
list.map(fields, fn(field) {
case field, config.labels_mode {
case field, config.label_mode {
decoder.Positional(value), Labels
| decoder.Positional(value), NoLabels
| decoder.Labelled(_, value), NoLabels -> pretty_dynamic(value, config)
Expand Down

0 comments on commit dd1014c

Please sign in to comment.