Align JSDoc to style guide.

This commit is contained in:
Kitson Kelly 2018-10-15 07:29:50 +11:00 committed by Ryan Dahl
parent 1840a19713
commit 10a97679ac
31 changed files with 437 additions and 423 deletions

View file

@ -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));