Skip to content

Commit dd1014c

Browse files
committed
♻️ Make singular to be more consistent
1 parent 9db16a0 commit dd1014c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pprint.gleam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub type Config {
1818
Config(
1919
style_mode: StyleMode,
2020
bit_array_mode: BitArrayMode,
21-
labels_mode: LabelsMode,
21+
label_mode: LabelMode,
2222
)
2323
}
2424

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

243243
let fields =
244244
list.map(fields, fn(field) {
245-
case field, config.labels_mode {
245+
case field, config.label_mode {
246246
decoder.Positional(value), Labels
247247
| decoder.Positional(value), NoLabels
248248
| decoder.Labelled(_, value), NoLabels -> pretty_dynamic(value, config)

0 commit comments

Comments
 (0)