Skip to content

Commit cae07ef

Browse files
TheCartonmockersf
andauthored
grammar fix (#12999)
Changed incorrect "it's" to "its" in a code comment. --------- Co-authored-by: François Mockers <francois.mockers@vleue.com>
1 parent 368c5ce commit cae07ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/ui/grid.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ fn spawn_layout(mut commands: Commands, asset_server: Res<AssetServer>) {
2525
style: Style {
2626
// Use the CSS Grid algorithm for laying out this node
2727
display: Display::Grid,
28-
// Make node fill the entirety it's parent (in this case the window)
28+
// Make node fill the entirety of its parent (in this case the window)
2929
width: Val::Percent(100.0),
3030
height: Val::Percent(100.0),
3131
// Set the grid to have 2 columns with sizes [min-content, minmax(0, 1fr)]
32-
// - The first column will size to the size of it's contents
32+
// - The first column will size to the size of its contents
3333
// - The second column will take up the remaining available space
3434
grid_template_columns: vec![GridTrack::min_content(), GridTrack::flex(1.0)],
3535
// Set the grid to have 3 rows with sizes [auto, minmax(0, 1fr), 20px]
36-
// - The first row will size to the size of it's contents
36+
// - The first row will size to the size of its contents
3737
// - The second row take up remaining available space (after rows 1 and 3 have both been sized)
3838
// - The third row will be exactly 20px high
3939
grid_template_rows: vec![
@@ -190,7 +190,7 @@ fn spawn_layout(mut commands: Commands, asset_server: Res<AssetServer>) {
190190

191191
/// Create a coloured rectangle node. The node has size as it is assumed that it will be
192192
/// spawned as a child of a Grid container with `AlignItems::Stretch` and `JustifyItems::Stretch`
193-
/// which will allow it to take it's size from the size of the grid area it occupies.
193+
/// which will allow it to take its size from the size of the grid area it occupies.
194194
fn item_rect(builder: &mut ChildBuilder, color: Srgba) {
195195
builder
196196
.spawn(NodeBundle {

0 commit comments

Comments
 (0)