Skip to content

[minor] nim doc renders generic badly (extra ;): template default[T; ](t: typedesc[T]): T + bad formatting #8488

Closed
@timotheecour

Description

@timotheecour
  • extra ;
    nim doc test.nim
template default*[T](t: typedesc[T]): T =
  ## returns default value for type ``T``, and can work at compile time
  defaultImpl[T]()
#renders as:
template default[T; ](t: typedesc[T]): T
#instead of:
template default[T](t: typedesc[T]): T
  • bad formatting:
proc test1*[T](x: T) : T =
  ## A test function v2
  runnableExamples:
    doAssert test1(12) == 12
  return x

shows as:

doAssert test2(12) ==
    12

instead of

doAssert test1(12) == 12

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation GenerationRelated to documentation generation (but not content).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions