diff --git a/std/fmt/format.jule b/std/fmt/format.jule index ce6abe404..19fa68781 100644 --- a/std/fmt/format.jule +++ b/std/fmt/format.jule @@ -153,22 +153,22 @@ fn format(fmt: str, args: ...any): []byte { // but for unusupported types it uses default runtime string conversion function of type. // // Formatting: -// Arguments are processed sequentially. That is, when an argument -// encounters a format string parameter, it will be processed according -// to how many parameters it is. The 5th parameter uses the 5th argument -// as the value. +// Arguments are processed sequentially. That is, when an argument +// encounters a format string parameter, it will be processed according +// to how many parameters it is. The 5th parameter uses the 5th argument +// as the value. // -// Each format parameter is represented as "{}" in the format string. -// These parameters will then be deleted according to the processing -// algorithm and replaced with arguments. +// Each format parameter is represented as "{}" in the format string. +// These parameters will then be deleted according to the processing +// algorithm and replaced with arguments. // -// The parameter "{{}}" is formatted as "{}" actually, -// And does not increase argument list offset. +// The parameter "{{}}" is formatted as "{}" actually, +// And does not increase argument list offset. // // Examples: -// - Format("{} {}!", "Hello", "World") = "Hello World!" -// - Format("{} {}") = "{} {}" -// - Format("{} is the {}", "Pi Number") = "Pi Number is the {}" +// Format("{} {}!", "Hello", "World") = "Hello World!" +// Format("{} {}") = "{} {}" +// Format("{} is the {}", "Pi Number") = "Pi Number is the {}" fn Format(fmt: str, args: ...any): str { ret unsafe::StrFromBytes(format(fmt, args...)) } \ No newline at end of file