From a379d4de26b390ba6546ff8557a5c96145e8f3ac Mon Sep 17 00:00:00 2001 From: Gabor Boros Date: Sun, 15 May 2022 15:58:11 +0200 Subject: [PATCH] docs: update format docs Signed-off-by: Gabor Boros --- _jekyll/_data/api_java.yml | 4 +- _jekyll/_data/api_javascript.yml | 4 +- _jekyll/_data/api_python.yml | 4 +- _jekyll/_data/api_ruby.yml | 4 +- api/java/index.md | 34 +++++++++--- api/java/string-manipulation/downcase.md | 2 +- api/java/string-manipulation/fmt.md | 38 ------------- api/java/string-manipulation/format.md | 54 ++++++++++++++++++ api/java/string-manipulation/match.md | 2 +- api/java/string-manipulation/split.md | 2 +- api/java/string-manipulation/upcase.md | 2 +- api/javascript/index.md | 31 +++++++++-- .../string-manipulation/downcase.md | 2 +- api/javascript/string-manipulation/fmt.md | 39 ------------- api/javascript/string-manipulation/format.md | 55 +++++++++++++++++++ api/javascript/string-manipulation/match.md | 2 +- api/javascript/string-manipulation/split.md | 2 +- api/javascript/string-manipulation/upcase.md | 2 +- api/python/index.md | 36 ++++++++++-- api/python/string-manipulation/downcase.md | 2 +- api/python/string-manipulation/fmt.md | 39 ------------- api/python/string-manipulation/format.md | 55 +++++++++++++++++++ api/python/string-manipulation/match.md | 2 +- api/python/string-manipulation/split.md | 2 +- api/python/string-manipulation/upcase.md | 2 +- api/ruby/index.md | 36 ++++++++++-- api/ruby/string-manipulation/downcase.md | 2 +- api/ruby/string-manipulation/fmt.md | 39 ------------- api/ruby/string-manipulation/format.md | 55 +++++++++++++++++++ api/ruby/string-manipulation/match.md | 2 +- api/ruby/string-manipulation/split.md | 2 +- api/ruby/string-manipulation/upcase.md | 2 +- 32 files changed, 354 insertions(+), 205 deletions(-) delete mode 100644 api/java/string-manipulation/fmt.md create mode 100644 api/java/string-manipulation/format.md delete mode 100644 api/javascript/string-manipulation/fmt.md create mode 100644 api/javascript/string-manipulation/format.md delete mode 100644 api/python/string-manipulation/fmt.md create mode 100644 api/python/string-manipulation/format.md delete mode 100644 api/ruby/string-manipulation/fmt.md create mode 100644 api/ruby/string-manipulation/format.md diff --git a/_jekyll/_data/api_java.yml b/_jekyll/_data/api_java.yml index 3d337dd1..9af2a7df 100644 --- a/_jekyll/_data/api_java.yml +++ b/_jekyll/_data/api_java.yml @@ -219,8 +219,8 @@ permalink: upcase - name: downcase permalink: downcase - - name: fmt - permalink: fmt + - name: format + permalink: format - section: name: Math and logic commands: diff --git a/_jekyll/_data/api_javascript.yml b/_jekyll/_data/api_javascript.yml index 792ba81b..c3f78b5b 100644 --- a/_jekyll/_data/api_javascript.yml +++ b/_jekyll/_data/api_javascript.yml @@ -219,8 +219,8 @@ permalink: upcase - name: downcase permalink: downcase - - name: fmt - permalink: fmt + - name: format + permalink: format - section: name: Math and logic commands: diff --git a/_jekyll/_data/api_python.yml b/_jekyll/_data/api_python.yml index 04c8c7b4..c806405c 100644 --- a/_jekyll/_data/api_python.yml +++ b/_jekyll/_data/api_python.yml @@ -217,8 +217,8 @@ permalink: upcase - name: downcase permalink: downcase - - name: fmt - permalink: fmt + - name: format + permalink: format - section: name: Math and logic commands: diff --git a/_jekyll/_data/api_ruby.yml b/_jekyll/_data/api_ruby.yml index a4a224d9..0456ac41 100644 --- a/_jekyll/_data/api_ruby.yml +++ b/_jekyll/_data/api_ruby.yml @@ -215,8 +215,8 @@ permalink: upcase - name: downcase permalink: downcase - - name: fmt - permalink: fmt + - name: format + permalink: format - section: name: Math and logic commands: diff --git a/api/java/index.md b/api/java/index.md index 6c7f90d9..a6716d89 100644 --- a/api/java/index.md +++ b/api/java/index.md @@ -1932,27 +1932,45 @@ Result: [Read more about this command →](split/) -## [fmt](fmt/) ## +## [format](format/) ## {% apibody %} -r.fmt(string, object) → string +r.format(string, object) → string {% endapibody %} -Formats a template string based on a string-string key-value object. +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. -__Example:__ +__Example:__ Using simple parameters for formatting. -```js -r.fmt("{name} loves {candy}.", {"name": "Bob", "candy": "candy floss"}).run(conn, callback) +```java +r.format("{name} loves {candy}.", + r.hashMap("name", "Bob").with("candy", "candy floss") +).run(conn, callback) ``` Result: -```js +```java "Bob loves candy floss." ``` -[Read more about this command →](fmt/) +__Example:__ Using row for formatting. + +```java +r.table("movies").map({ + id: r.row('id'), + ratings: r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}) +``` + +Result: + +```java +// `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` + +[Read more about this command →](format/) ## [upcase](upcase/) ## diff --git a/api/java/string-manipulation/downcase.md b/api/java/string-manipulation/downcase.md index 65a15ae4..b26eeddd 100644 --- a/api/java/string-manipulation/downcase.md +++ b/api/java/string-manipulation/downcase.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/java/string-manipulation/fmt.md b/api/java/string-manipulation/fmt.md deleted file mode 100644 index 99a763bb..00000000 --- a/api/java/string-manipulation/fmt.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -layout: api-command -language: Java -permalink: api/java/fmt/ -command: fmt -io: - - - r - - string -related_commands: - match: match/ - split: split/ - upcase: upcase/ - downcase: downcase/ ---- - -# Command syntax # - -{% apibody %} -r.fmt(string, object) → string -{% endapibody %} - -# Description # - -Formats a template string based on a string-string key-value object. - -__Example:__ - -```java -r.fmt("{name} loves {candy}.", - r.hashMap("name", "Bob").with("candy", "candy floss") -).run(conn, callback) -``` - -Result: - -```java -"Bob loves candy floss." -``` diff --git a/api/java/string-manipulation/format.md b/api/java/string-manipulation/format.md new file mode 100644 index 00000000..655c2358 --- /dev/null +++ b/api/java/string-manipulation/format.md @@ -0,0 +1,54 @@ +--- +layout: api-command +language: Java +permalink: api/java/format/ +command: format +io: + - - r + - string +related_commands: + match: match/ + split: split/ + upcase: upcase/ + downcase: downcase/ +--- + +# Command syntax # + +{% apibody %} +r.format(string, object) → string +{% endapibody %} + +# Description # + +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. + +__Example:__ Using simple parameters for formatting. + +```java +r.format("{name} loves {candy}.", + r.hashMap("name", "Bob").with("candy", "candy floss") +).run(conn, callback) +``` + +Result: + +```java +"Bob loves candy floss." +``` + +__Example:__ Using row for formatting. + +```java +r.table("movies").map({ + id: r.row('id'), + ratings: r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}) +``` + +Result: + +```java +// `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` diff --git a/api/java/string-manipulation/match.md b/api/java/string-manipulation/match.md index 8ba6bd72..5123e2a2 100644 --- a/api/java/string-manipulation/match.md +++ b/api/java/string-manipulation/match.md @@ -10,7 +10,7 @@ related_commands: upcase: upcase/ downcase: downcase/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/java/string-manipulation/split.md b/api/java/string-manipulation/split.md index 483e48ef..ed2f194a 100644 --- a/api/java/string-manipulation/split.md +++ b/api/java/string-manipulation/split.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ downcase: downcase/ match: match/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/java/string-manipulation/upcase.md b/api/java/string-manipulation/upcase.md index 72b0f6a2..a751a15d 100644 --- a/api/java/string-manipulation/upcase.md +++ b/api/java/string-manipulation/upcase.md @@ -7,7 +7,7 @@ related_commands: downcase: downcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/javascript/index.md b/api/javascript/index.md index 1d2737ff..6de5289a 100644 --- a/api/javascript/index.md +++ b/api/javascript/index.md @@ -2009,18 +2009,21 @@ Result: [Read more about this command →](split/) -## [fmt](fmt/) ## +## [format](format/) ## {% apibody %} -r.fmt(string, object) → string +r.format(string, object) → string {% endapibody %} -Formats a template string based on a string-string key-value object. +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. -__Example:__ +__Example:__ Using simple parameters for formatting. ```js -r.fmt("{name} loves {candy}.", {"name": "Bob", "candy": "candy floss"}).run(conn, callback) +r.format("{name} loves {candy}.", { + "name": "Bob", + "candy": "candy floss", +}).run(conn, callback) ``` Result: @@ -2029,7 +2032,23 @@ Result: "Bob loves candy floss." ``` -[Read more about this command →](fmt/) +__Example:__ Using row for formatting. + +```js +r.table("movies").map({ + id: r.row('id'), + ratings: r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}) +``` + +Result: + +```js +// `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` + +[Read more about this command →](format/) ## [upcase](upcase/) ## diff --git a/api/javascript/string-manipulation/downcase.md b/api/javascript/string-manipulation/downcase.md index 0900ce66..21305d98 100644 --- a/api/javascript/string-manipulation/downcase.md +++ b/api/javascript/string-manipulation/downcase.md @@ -10,7 +10,7 @@ related_commands: upcase: upcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/javascript/string-manipulation/fmt.md b/api/javascript/string-manipulation/fmt.md deleted file mode 100644 index 9bf27f43..00000000 --- a/api/javascript/string-manipulation/fmt.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -layout: api-command -language: JavaScript -permalink: api/javascript/fmt/ -command: fmt -io: - - - r - - string -related_commands: - match: match/ - split: split/ - upcase: upcase/ - downcase: downcase/ ---- - -# Command syntax # - -{% apibody %} -r.fmt(string, object) → string -{% endapibody %} - -# Description # - -Formats a template string based on a string-string key-value object. - -__Example:__ - -```js -r.fmt("{name} loves {candy}.", { - "name": "Bob", - "candy": "candy floss", -}).run(conn, callback) -``` - -Result: - -```js -"Bob loves candy floss." -``` diff --git a/api/javascript/string-manipulation/format.md b/api/javascript/string-manipulation/format.md new file mode 100644 index 00000000..31fafd5f --- /dev/null +++ b/api/javascript/string-manipulation/format.md @@ -0,0 +1,55 @@ +--- +layout: api-command +language: JavaScript +permalink: api/javascript/format/ +command: format +io: + - - r + - string +related_commands: + match: match/ + split: split/ + upcase: upcase/ + downcase: downcase/ +--- + +# Command syntax # + +{% apibody %} +r.format(string, object) → string +{% endapibody %} + +# Description # + +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. + +__Example:__ Using simple parameters for formatting. + +```js +r.format("{name} loves {candy}.", { + "name": "Bob", + "candy": "candy floss", +}).run(conn, callback) +``` + +Result: + +```js +"Bob loves candy floss." +``` + +__Example:__ Using row for formatting. + +```js +r.table("movies").map({ + id: r.row('id'), + ratings: r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}) +``` + +Result: + +```js +// `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` diff --git a/api/javascript/string-manipulation/match.md b/api/javascript/string-manipulation/match.md index 2199725d..702fb4d1 100644 --- a/api/javascript/string-manipulation/match.md +++ b/api/javascript/string-manipulation/match.md @@ -10,7 +10,7 @@ related_commands: upcase: upcase/ downcase: downcase/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/javascript/string-manipulation/split.md b/api/javascript/string-manipulation/split.md index 578e6b49..07fbe50b 100644 --- a/api/javascript/string-manipulation/split.md +++ b/api/javascript/string-manipulation/split.md @@ -10,7 +10,7 @@ related_commands: upcase: upcase/ downcase: downcase/ match: match/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/javascript/string-manipulation/upcase.md b/api/javascript/string-manipulation/upcase.md index 8667e231..e65c5544 100644 --- a/api/javascript/string-manipulation/upcase.md +++ b/api/javascript/string-manipulation/upcase.md @@ -10,7 +10,7 @@ related_commands: downcase: downcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/python/index.md b/api/python/index.md index c08b1b3a..5762bab5 100644 --- a/api/python/index.md +++ b/api/python/index.md @@ -1899,22 +1899,46 @@ __Example:__ Split on whitespace. [Read more about this command →](split/) -## [fmt](fmt/) ## +## [format](format/) ## {% apibody %} -r.fmt(string, object) → string +r.format(string, object) → string {% endapibody %} -Formats a template string based on a string-string key-value object. +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. -__Example:__ +__Example:__ Using simple parameters for formatting. + +```py +r.format("{name} loves {candy}.", { + "name": "Bob", + "candy": "candy floss", +}).run(conn) +``` + +Result: ```py -r.fmt("{name} loves {candy}.", {"name": "Bob", "candy": "candy floss"}).run(conn, callback) "Bob loves candy floss." ``` -[Read more about this command →](fmt/) +__Example:__ Using row for formatting. + +```py +r.table("movies").map({ + id: r.row('id'), + ratings: r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}).run(conn) +``` + +Result: + +```py +# `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` + +[Read more about this command →](format/) ## [upcase](upcase/) ## diff --git a/api/python/string-manipulation/downcase.md b/api/python/string-manipulation/downcase.md index 350c0c4d..00e9dec5 100644 --- a/api/python/string-manipulation/downcase.md +++ b/api/python/string-manipulation/downcase.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/python/string-manipulation/fmt.md b/api/python/string-manipulation/fmt.md deleted file mode 100644 index d6c55c56..00000000 --- a/api/python/string-manipulation/fmt.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -layout: api-command -language: Python -permalink: api/python/fmt/ -command: fmt -io: - - - r - - string -related_commands: - match: match/ - split: split/ - upcase: upcase/ - downcase: downcase/ ---- - -# Command syntax # - -{% apibody %} -r.fmt(string, object) → string -{% endapibody %} - -# Description # - -Formats a template string based on a string-string key-value object. - -__Example:__ - -```py -r.fmt("{name} loves {candy}.", { - "name": "Bob", - "candy": "candy floss", -}).run(conn, callback) -``` - -Result: - -```py -"Bob loves candy floss." -``` diff --git a/api/python/string-manipulation/format.md b/api/python/string-manipulation/format.md new file mode 100644 index 00000000..b30db0fd --- /dev/null +++ b/api/python/string-manipulation/format.md @@ -0,0 +1,55 @@ +--- +layout: api-command +language: Python +permalink: api/python/format/ +command: format +io: + - - r + - string +related_commands: + match: match/ + split: split/ + upcase: upcase/ + downcase: downcase/ +--- + +# Command syntax # + +{% apibody %} +r.format(string, object) → string +{% endapibody %} + +# Description # + +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. + +__Example:__ Using simple parameters for formatting. + +```py +r.format("{name} loves {candy}.", { + "name": "Bob", + "candy": "candy floss", +}).run(conn) +``` + +Result: + +```py +"Bob loves candy floss." +``` + +__Example:__ Using row for formatting. + +```py +r.table("movies").map({ + id: r.row('id'), + ratings: r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}).run(conn) +``` + +Result: + +```py +# `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` diff --git a/api/python/string-manipulation/match.md b/api/python/string-manipulation/match.md index 51299736..955aa43d 100644 --- a/api/python/string-manipulation/match.md +++ b/api/python/string-manipulation/match.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ downcase: downcase/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/python/string-manipulation/split.md b/api/python/string-manipulation/split.md index 4a51aa2e..42926c18 100644 --- a/api/python/string-manipulation/split.md +++ b/api/python/string-manipulation/split.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ downcase: downcase/ match: match/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/python/string-manipulation/upcase.md b/api/python/string-manipulation/upcase.md index 93c2ca2c..867450d1 100644 --- a/api/python/string-manipulation/upcase.md +++ b/api/python/string-manipulation/upcase.md @@ -7,7 +7,7 @@ related_commands: downcase: downcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/ruby/index.md b/api/ruby/index.md index ecb68e53..47b5b983 100644 --- a/api/ruby/index.md +++ b/api/ruby/index.md @@ -1877,22 +1877,46 @@ __Example:__ Split on whitespace. [Read more about this command →](split/) -## [fmt](fmt/) ## +## [format](format/) ## {% apibody %} -r.fmt(string, object) → string +r.format(string, object) → string {% endapibody %} -Formats a template string based on a string-string key-value object. +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. -__Example:__ +__Example:__ Using simple parameters for formatting. + +```rb +r.format("{name} loves {candy}.", { + "name" => "Bob", + "candy" => "candy floss", +}).run(conn) +``` + +Result: ```rb -r.fmt("{name} loves {candy}.", {"name" => "Bob", "candy" => "candy floss"}).run(conn, callback) "Bob loves candy floss." ``` -[Read more about this command →](fmt/) +__Example:__ Using row for formatting. + +```rb +r.table("movies").map({ + "id" => r.row('id'), + "ratings" => r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}).run(conn) +``` + +Result: + +```rb +# `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` + +[Read more about this command →](format/) ## [upcase](upcase/) ## diff --git a/api/ruby/string-manipulation/downcase.md b/api/ruby/string-manipulation/downcase.md index 07ea7960..7f531629 100644 --- a/api/ruby/string-manipulation/downcase.md +++ b/api/ruby/string-manipulation/downcase.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/ruby/string-manipulation/fmt.md b/api/ruby/string-manipulation/fmt.md deleted file mode 100644 index a709f97a..00000000 --- a/api/ruby/string-manipulation/fmt.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -layout: api-command -language: Ruby -permalink: api/ruby/fmt/ -command: fmt -io: - - - r - - string -related_commands: - match: match/ - split: split/ - upcase: upcase/ - downcase: downcase/ ---- - -# Command syntax # - -{% apibody %} -r.fmt(string, object) → string -{% endapibody %} - -# Description # - -Formats a template string based on a string-string key-value object. - -__Example:__ - -```rb -r.fmt("{name} loves {candy}.", { - "name" => "Bob", - "candy" => "candy floss", -}).run(conn, callback) -``` - -Result: - -```rb -"Bob loves candy floss." -``` diff --git a/api/ruby/string-manipulation/format.md b/api/ruby/string-manipulation/format.md new file mode 100644 index 00000000..71910770 --- /dev/null +++ b/api/ruby/string-manipulation/format.md @@ -0,0 +1,55 @@ +--- +layout: api-command +language: Ruby +permalink: api/ruby/format/ +command: format +io: + - - r + - string +related_commands: + match: match/ + split: split/ + upcase: upcase/ + downcase: downcase/ +--- + +# Command syntax # + +{% apibody %} +r.format(string, object) → string +{% endapibody %} + +# Description # + +Format command takes a string as a template and formatting parameters as an object. The parameters in the template string must exist as keys in the object, otherwise, an error raised. The template must be a string literal and cannot be the result of other commands. + +__Example:__ Using simple parameters for formatting. + +```rb +r.format("{name} loves {candy}.", { + "name" => "Bob", + "candy" => "candy floss", +}).run(conn) +``` + +Result: + +```rb +"Bob loves candy floss." +``` + +__Example:__ Using row for formatting. + +```rb +r.table("movies").map({ + "id" => r.row('id'), + "ratings" => r.http(r.format('http://example.com/movies/?title={title}&release={year}', r.row)) +}).run(conn) +``` + +Result: + +```rb +# `ratings` is the result of the HTTP request +[{ id: 1, ratings: { positive: 99, negative: 0 }}] +``` diff --git a/api/ruby/string-manipulation/match.md b/api/ruby/string-manipulation/match.md index d33b3198..e219b1bf 100644 --- a/api/ruby/string-manipulation/match.md +++ b/api/ruby/string-manipulation/match.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ downcase: downcase/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/ruby/string-manipulation/split.md b/api/ruby/string-manipulation/split.md index 1486a6c2..5ad8d0eb 100644 --- a/api/ruby/string-manipulation/split.md +++ b/api/ruby/string-manipulation/split.md @@ -7,7 +7,7 @@ related_commands: upcase: upcase/ downcase: downcase/ match: match/ - fmt: fmt/ + format: format/ --- # Command syntax # diff --git a/api/ruby/string-manipulation/upcase.md b/api/ruby/string-manipulation/upcase.md index 11b76444..939b8cd1 100644 --- a/api/ruby/string-manipulation/upcase.md +++ b/api/ruby/string-manipulation/upcase.md @@ -7,7 +7,7 @@ related_commands: downcase: downcase/ match: match/ split: split/ - fmt: fmt/ + format: format/ --- # Command syntax #