Skip to content

Conversation

@Foxerine
Copy link
Contributor

@Foxerine Foxerine commented May 5, 2025

Fixed Incorrect Line Highlights in FastAPI Relationships Tutorial

I fixed the incorrect line highlights in the FastAPI relationships tutorial documentation. The highlighted lines were incorrectly pointing to lines 165 and 170, which should actually be lines 164 and 169.

Issue Details

The highlighted lines for methods related to teams were not correctly aligned with the intended code sections that showcase the newly introduced TeamPublicWithHeroes class. This misalignment could cause confusion for users following the tutorial.

Note that the highlighted line numbers for methods related to heroes were already correct, properly highlighting the HeroPublicWithTeam class.

Changes Made

  • Changed highlight parameters from hl[111,116,165,170] to hl[111,116,164,169]
  • The first pair (111,116) remains unchanged as it was correct
  • The second pair was corrected from (165,170) to (164,169)

Before Fix

image
image

This change ensures that the documentation accurately highlights the relevant code sections, making the tutorial easier to follow.

fix incorrect highlighted line number
@github-actions github-actions bot added the docs Improvements or additions to documentation label May 5, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2025

@Foxerine
Copy link
Contributor Author

Foxerine commented May 5, 2025

@Foxerine Foxerine closed this May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant