mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
fix typo
This commit is contained in:
parent
63293a90e1
commit
ceb7aae8ef
1 changed files with 9 additions and 9 deletions
|
@ -14,13 +14,13 @@ Basic usage:
|
|||
|
||||
```ts
|
||||
import { pad } from "https://deno.land/std/strings/pad.ts";
|
||||
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..."
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue