summaryrefslogtreecommitdiff
path: root/strings/pad.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-04-04 11:58:16 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-04-04 05:58:16 -0400
commit0ff0ba2b32113e4aa18fe9f35e0f9068cce3ba08 (patch)
tree2655c6d2e0dbc8c0f2314da05165aa86b581a4c7 /strings/pad.ts
parentfd170692ddd48b66bac095db2c9d71fa89bdad43 (diff)
Fixing jsdoc example padding (denoland/deno_std#322)
Original: https://github.com/denoland/deno_std/commit/a0ff487a125254b02fb01126883f7d7798716200
Diffstat (limited to 'strings/pad.ts')
-rw-r--r--strings/pad.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/strings/pad.ts b/strings/pad.ts
index f74742cc1..1c1868769 100644
--- a/strings/pad.ts
+++ b/strings/pad.ts
@@ -21,15 +21,15 @@ export interface FillOption {
* is equal to the `strLen` parameter.
* Example:
*
- * pad("deno", 6, { char: "*", side: "left" }) // output : "**deno"
- * pad("deno", 6, { char: "*", side: "right"}) // output : "deno**"
- * pad("denosorusrex", 6 {
- * char: "*",
- * side: "left",
- * strict: true,
- * strictSide: "right",
- * strictChar: "..."
- * }) // output : "den..."
+ * pad("deno", 6, { char: "*", side: "left" }) // output : "**deno"
+ * pad("deno", 6, { char: "*", side: "right"}) // output : "deno**"
+ * pad("denosorusrex", 6 {
+ * char: "*",
+ * side: "left",
+ * strict: true,
+ * strictSide: "right",
+ * strictChar: "..."
+ * }) // output : "den..."
*
* @param input Input string
* @param strLen Output string lenght