gleam icon indicating copy to clipboard operation
gleam copied to clipboard

Weird gleam format for constructor docs

Open manveru opened this issue 3 years ago • 1 comments

Given:

pub type Example {
  Example(
    /// Hello
    /// More
    a: String, /// There
    b: String)
}

Will be formatted as:

pub type Example {
  Example(/// Hello
    /// More
    a: String, /// There
    b: String)
}

For now these two ways work:

pub type Example {
  Example(
    /// Hello
    a: String,
    /// There
    b: String,
  )
}

pub type Example {
  Example(
    /// There
    b: String,
    /// Hello
    /// More
    a: String,
  )
}

manveru avatar Sep 09 '22 11:09 manveru

Thank you

lpil avatar Sep 10 '22 09:09 lpil