Skip to content

Fix doubled-word typos in docstrings - #3561

Merged
angeloskath merged 1 commit into
ml-explore:mainfrom
LeSingh1:fix-doubled-word-typos
May 19, 2026
Merged

angeloskath merged 1 commit into
ml-explore:mainfrom
LeSingh1:fix-doubled-word-typos

Conversation

@LeSingh1

Copy link
Copy Markdown
Contributor

Summary

Five trivial doubled-word typos in user-visible docstrings:

File Line Fix
python/mlx/nn/losses.py 275 gaussian_nll_loss docstring: "are the the predicted variances" → "are the predicted variances"
python/mlx/nn/layers/distributed.py 202, 286 AllToShardedLinear / ShardedToAllLinear bias arg: "If set to False the the layer will not use a bias" → "the layer will not use a bias"
python/src/ops.cpp 840 logaddexp docstring: "The computation is is a numerically stable version" → "The computation is a numerically stable version"
python/src/transforms.cpp 1520 compile() return-value docstring: "returns the the same output(s)" → "returns the same output(s)"

Test plan

  • python3 -c "import ast; ast.parse(open('python/mlx/nn/losses.py').read()); ast.parse(open('python/mlx/nn/layers/distributed.py').read())" — both files still parse.
  • grep -rEn '\b(the the|of of|is is|to to|and and|that that|in in|a a)\b' --include='*.py' --include='*.cpp' --include='*.h' python/ — no remaining hits in user-visible code.

Scope

Docstring text only. No code, behavior, or API affected.

Five instances of 'the the'/'is is' in user-visible Python and C++
docstrings:

- python/mlx/nn/losses.py: gaussian_nll_loss docstring
- python/mlx/nn/layers/distributed.py: AllToShardedLinear and
  ShardedToAllLinear bias arg docs (two copies)
- python/src/ops.cpp: logaddexp docstring
- python/src/transforms.cpp: compile() return-value docstring

@angeloskath angeloskath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@angeloskath
angeloskath merged commit b226aaf into ml-explore:main May 19, 2026
31 of 32 checks passed
@BrewTestBot BrewTestBot mentioned this pull request Jul 7, 2026
1 task done
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.

2 participants