Added string formatting (#26695)

Included the String formatting function/method to the above list.
This commit is contained in:
Utkarsh Raghav
2018-12-17 15:12:56 +05:30
committed by Aditya
parent 15bfa694cd
commit e84bd33ca9

View File

@ -28,4 +28,4 @@ An empty `string` is created using a pair of quotation marks or apostrophes:
* `string.strip(to_strip)` Returns a string with `to_strip` removed from both the beginning and the end of the string. If `to_strip` is not specified, this will strip all whitespace characters. * `string.strip(to_strip)` Returns a string with `to_strip` removed from both the beginning and the end of the string. If `to_strip` is not specified, this will strip all whitespace characters.
* `string.format(to_add)` Returns a formatted string with parameter `to_add` placed in the placeholder position. The placeholder has to be defined by a pair of curly braces {} int the `string`'s value. The parameter, `to_add` can be anything amongst an integer, a floating point numerical, a string or even variables.