Skip to content
Permalink
Browse files

fix code bug in jsdocs (denoland#2048)

  • Loading branch information...
justjavac authored and ry committed Apr 4, 2019
1 parent 0e7311e commit 4520e5812e112dfb219f8eb6051ed8576141165a
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/files.ts
@@ -87,7 +87,7 @@ function resRead(baseRes: null | msg.Base): ReadResult {
* const file = Deno.openSync("/foo/bar.txt");
* const buf = new Uint8Array(100);
* const { nread, eof } = Deno.readSync(file.rid, buf);
* const text = new TextDecoder.decode(buf);
* const text = new TextDecoder().decode(buf);
*
*/
export function readSync(rid: number, p: Uint8Array): ReadResult {
@@ -102,7 +102,7 @@ export function readSync(rid: number, p: Uint8Array): ReadResult {
* const file = await Deno.open("/foo/bar.txt");
* const buf = new Uint8Array(100);
* const { nread, eof } = await Deno.read(file.rid, buf);
* const text = new TextDecoder.decode(buf);
* const text = new TextDecoder().decode(buf);
* })();
*/
export async function read(rid: number, p: Uint8Array): Promise<ReadResult> {

0 comments on commit 4520e58

Please sign in to comment.
You can’t perform that action at this time.