@@ -25,15 +25,15 @@ fn spawn_layout(mut commands: Commands, asset_server: Res<AssetServer>) {
25
25
style : Style {
26
26
// Use the CSS Grid algorithm for laying out this node
27
27
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)
29
29
width : Val :: Percent ( 100.0 ) ,
30
30
height : Val :: Percent ( 100.0 ) ,
31
31
// 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
33
33
// - The second column will take up the remaining available space
34
34
grid_template_columns : vec ! [ GridTrack :: min_content( ) , GridTrack :: flex( 1.0 ) ] ,
35
35
// 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
37
37
// - The second row take up remaining available space (after rows 1 and 3 have both been sized)
38
38
// - The third row will be exactly 20px high
39
39
grid_template_rows : vec ! [
@@ -190,7 +190,7 @@ fn spawn_layout(mut commands: Commands, asset_server: Res<AssetServer>) {
190
190
191
191
/// Create a coloured rectangle node. The node has size as it is assumed that it will be
192
192
/// 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.
194
194
fn item_rect ( builder : & mut ChildBuilder , color : Srgba ) {
195
195
builder
196
196
. spawn ( NodeBundle {
0 commit comments