From 7f09e41c95d538cef49e230de024b0f46041a21f Mon Sep 17 00:00:00 2001 From: Huynh Loc Le <101441531+huynhloc-1110@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:11:03 +0700 Subject: [PATCH] Fix string formatting alignment typos (#2297) --- concepts/string-formatting/about.md | 2 +- concepts/string-formatting/introduction.md | 2 +- exercises/concept/high-school-sweethearts/.docs/introduction.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/concepts/string-formatting/about.md b/concepts/string-formatting/about.md index 0f3108b977..1fd25786bf 100644 --- a/concepts/string-formatting/about.md +++ b/concepts/string-formatting/about.md @@ -46,7 +46,7 @@ A format item can comprise up to 3 parts. The first is the mandatory expression `{[,][:]}` -The _alignment_ specifies the length of the "field" in which the text is placed, padded to the left with spaces if the alignment is negative or to the right if it is positive. +The _alignment_ specifies the length of the "field" in which the text is placed, padded to the left with spaces if the alignment is positive or to the right if it is negative. The _format string_ specifies the shape of the text output such as whether thousands separators should be included for a number or whether the date part only of a `DateTime` object should be output. diff --git a/concepts/string-formatting/introduction.md b/concepts/string-formatting/introduction.md index e07fdb1311..31786a6b8c 100644 --- a/concepts/string-formatting/introduction.md +++ b/concepts/string-formatting/introduction.md @@ -32,7 +32,7 @@ A format item can comprise up to 3 parts. The first is the mandatory expression `{[,][:]` -The _alignment_ specifies the length of the "field" in which the text is placed, padded to the left with spaces if the alignment is negative or to the right if it is positive. +The _alignment_ specifies the length of the "field" in which the text is placed, padded to the left with spaces if the alignment is positive or to the right if it is negative. The _format string_ specifies the shape of the text output such as whether thousands separators should be included for a number or whether the date part only of a `DateTime` object should be output. diff --git a/exercises/concept/high-school-sweethearts/.docs/introduction.md b/exercises/concept/high-school-sweethearts/.docs/introduction.md index b53262dec8..d59b6c09e8 100644 --- a/exercises/concept/high-school-sweethearts/.docs/introduction.md +++ b/exercises/concept/high-school-sweethearts/.docs/introduction.md @@ -34,7 +34,7 @@ A format item can comprise up to 3 parts. The first is the mandatory expression `{[,][:]` -The _alignment_ specifies the length of the "field" in which the text is placed, padded to the left with spaces if the alignment is negative or to the right if it is positive. +The _alignment_ specifies the length of the "field" in which the text is placed, padded to the left with spaces if the alignment is positive or to the right if it is negative. The _format string_ specifies the shape of the text output such as whether thousands separators should be included for a number or whether the date part only of a `DateTime` object should be output.