Skip to content

Natspec: text before the @notice tag gets included as part of it #10281

Open
@axic

Description

@axic
contract C {
  /// Before the notice.
  /// @notice Some function.
  function f() public view returns (uint ret) {
  }
}

results in

Developer Documentation
{
  "kind": "dev",
  "methods": {},
  "version": 1
}
User Documentation
{
  "kind": "user",
  "methods":
  {
    "f()":
    {
      "notice": "Before the notice.Some function."
    }
  },
  "version": 1
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛low effortThere is not much implementation work to be done. The task is very easy or tiny.low impactChanges are not very noticeable or potential benefits are limited.natspecneeds designThe proposal is too vague to be implemented right away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions