diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-15 07:29:50 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-14 17:38:23 -0400 |
commit | 10a97679ac80b4304c75d33cbc59c5736d11deb1 (patch) | |
tree | b51b9183ed251f61373069e5c4d35e39603bedb2 /js/truncate.ts | |
parent | 1840a1971317f5b8fc6e322b3a414b7f8a593c88 (diff) |
Align JSDoc to style guide.
Diffstat (limited to 'js/truncate.ts')
-rw-r--r-- | js/truncate.ts | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/js/truncate.ts b/js/truncate.ts index ed105ae28..c26eb8a74 100644 --- a/js/truncate.ts +++ b/js/truncate.ts @@ -3,25 +3,24 @@ import * as msg from "gen/msg_generated"; import { flatbuffers } from "flatbuffers"; import * as dispatch from "./dispatch"; -/** - * Truncates or extends the specified file synchronously, - * updating the size of this file to become size. +/** Truncates or extends the specified file synchronously, updating the size of + * this file to become size. * - * import { truncateSync } from "deno"; + * import { truncateSync } from "deno"; * - * truncateSync("hello.txt", 10); + * truncateSync("hello.txt", 10); */ export function truncateSync(name: string, len?: number): void { dispatch.sendSync(...req(name, len)); } /** - * Truncates or extends the specified file, - * updating the size of this file to become size. + * Truncates or extends the specified file, updating the size of this file to + * become size. * - * import { truncate } from "deno"; + * import { truncate } from "deno"; * - * await truncate("hello.txt", 10); + * await truncate("hello.txt", 10); */ export async function truncate(name: string, len?: number): Promise<void> { await dispatch.sendAsync(...req(name, len)); |