Skip to content

Add a stale code sample after a function signature change #9

Open

Description

@Muawiya-contact

Why

Copyable code samples can stop working after a function's arguments change, even when the prose around them still sounds right.

Expected change

Add one Markdown example under examples/ using the example guide in examples/README.md. Show a tiny function signature change, an old usage snippet in a guide, and a possible warning. Pick a language a newcomer can understand without installing anything.

Acceptance criteria

  • The signature change and stale call are both visible.
  • The example explains what a reader would need to update.
  • It distinguishes the proposed warning from a feature DocHeal already has.
  • The example is self-contained and uses fictional code.

How to check

Preview the Markdown and check that the old call no longer matches the new signature. No automated test exists yet.

If this issue is unclaimed, please comment before starting so we can avoid duplicate work.

Activity

  1. added
    documentation
    good first issue
    help wanted
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions