Skip to content

Fix incorrect method names in PonyCheck docstring examples#4885

Merged
SeanTAllen merged 1 commit intomainfrom
fix-ponycheck-docstring-examples
Feb 28, 2026
Merged

Fix incorrect method names in PonyCheck docstring examples#4885
SeanTAllen merged 1 commit intomainfrom
fix-ponycheck-docstring-examples

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

The package docstring in packages/pony_check/pony_check.pony had three bugs in its code examples:

  • ph.array_eq doesn't exist on PropertyHelper — the correct method is assert_array_eq (two occurrences)
  • The inline for_all example used Usize instead of USize
  • The inline for_all example used arg1 instead of sample (the actual lambda parameter name)

Closes #4884

The package docstring used `ph.array_eq` which doesn't exist on
PropertyHelper — the correct method is `assert_array_eq`. The inline
for_all example also had `Usize` (wrong capitalization) and used `arg1`
instead of `sample` (the lambda parameter name).

Closes #4884
@SeanTAllen SeanTAllen merged commit 51c19ce into main Feb 28, 2026
10 of 25 checks passed
@SeanTAllen SeanTAllen deleted the fix-ponycheck-docstring-examples branch February 28, 2026 00:43
@ponylang-main ponylang-main added discuss during sync Should be discussed during an upcoming sync and removed discuss during sync Should be discussed during an upcoming sync labels Feb 28, 2026
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.

PonyCheck package docstring uses nonexistent array_eq method

2 participants