Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Small description improvements (WIP)#147

Open
JosephBARBIERDARNAL wants to merge 4 commits into
rustfinity:mainrustfinity/rustfinity:mainfrom
JosephBARBIERDARNAL:patch-1JosephBARBIERDARNAL/rustfinity:patch-1Copy head branch name to clipboard
Open

Small description improvements (WIP)#147
JosephBARBIERDARNAL wants to merge 4 commits into
rustfinity:mainrustfinity/rustfinity:mainfrom
JosephBARBIERDARNAL:patch-1JosephBARBIERDARNAL/rustfinity:patch-1Copy head branch name to clipboard

Conversation

@JosephBARBIERDARNAL
Copy link
Copy Markdown

@JosephBARBIERDARNAL JosephBARBIERDARNAL commented Jan 20, 2026

Hi,

First of all, thanks for this great ressource! This is the very first time for me I use rust and your website is perfect for this.

Here I suggest some small changes that I think would make the lessons better.

Right now changes are:

  • declaring-variables: I was very confused by what to do here until I looked at the solution. I think it should more obvious that users should add some values to width and height.
  • tuples: I think the example is too easy, so I suggest to change the position of 2 arguments to force users to put them in the right order.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 20, 2026

Walkthrough

The PR updates a Markdown example to initialize width and height with sample values. In the tuples challenge, create_tuple's return type is changed from (i32, f64, String) to (f64, i32, String) in lib.rs and starter.rs, and their implementations are adjusted to return the swapped element order. Tests were updated to expect the swapped tuple ordering.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Small description improvements (WIP)' is vague and does not clearly describe the main changes in the changeset, using generic phrasing like 'improvements' without specifying what was improved. Clarify the title to specify the main changes, e.g., 'Improve clarity in declaring-variables and tuples challenges' or similar descriptive phrasing.
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description clearly relates to the changeset, explaining the motivation for modifications to declaring-variables and tuples challenges.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@challenges/tuples/src/lib.rs`:
- Around line 1-2: Tests are failing because create_tuple signature returns
(f64, i32, String) with order (b, a, c) but the tests still assert (a, b,
String); update the assertions in the tests (tests.rs) to expect the new tuple
order — i.e., check the first element is the f64 argument, second is the i32
argument, and third is the String produced from c — and adjust any pattern
matches or destructuring to use (b, a, c_string) instead of (a, b, c_string).

Comment thread challenges/tuples/src/lib.rs
@JosephBARBIERDARNAL
Copy link
Copy Markdown
Author

@dcodesdev Hi! This should be ready for review.

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.