Skip to content

docs(diversity): fix manhattan_distance doc strings referencing Hamming distance#1006

Open
justDance-everybody wants to merge 1 commit intoMiniZinc:masterfrom
justDance-everybody:clawoss/docs/fix-manhattan-docs
Open

docs(diversity): fix manhattan_distance doc strings referencing Hamming distance#1006
justDance-everybody wants to merge 1 commit intoMiniZinc:masterfrom
justDance-everybody:clawoss/docs/fix-manhattan-docs

Conversation

@justDance-everybody
Copy link
Copy Markdown

The four manhattan_distance function docstrings incorrectly say "Returns the Hamming distance" — they should say "Returns the Manhattan distance". The implementation is correct (uses sum of absolute differences); only the doc comments were wrong. Fixes #1000

Copilot AI review requested due to automatic review settings April 3, 2026 05:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect documentation in manhattan_distance overloads where the docstrings mistakenly referenced Hamming distance, aligning the docs with the existing (correct) implementation. Addresses Issue #1000.

Changes:

  • Update four manhattan_distance docstrings to say “Returns the Manhattan distance …” instead of “Returns the Hamming distance …”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor Typo in Docs

2 participants