From 10a97679ac80b4304c75d33cbc59c5736d11deb1 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 15 Oct 2018 07:29:50 +1100 Subject: Align JSDoc to style guide. --- js/truncate.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'js/truncate.ts') 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 { await dispatch.sendAsync(...req(name, len)); -- cgit v1.2.3