bevy/release-content/migration-guides/rename-justifytext.md
ickshonpe 02fa833be1
Rename JustifyText to Justify (#19522)
# Objective

Rename `JustifyText`:

* The name `JustifyText` is just ugly.
* It's inconsistent since no other `bevy_text` types have a `Text-`
suffix, only prefix.
* It's inconsistent with the other text layout enum `Linebreak` which
doesn't have a prefix or suffix.

Fixes #19521.

## Solution

Rename `JustifyText` to `Justify`.

Without other context, it's natural to assume the name `Justify` refers
to text justification.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2025-06-09 19:59:48 +00:00

283 B

title pull_requests
Renamed `JustifyText` to `Justify`
19522

JustifyText has been renamed to Justify.

The -Text suffix was inconsistent with the names of other bevy_text types and unnecessary since it's natural to assume Justify refers to text justification.