mirror of
https://github.com/denoland/deno
synced 2024-08-28 04:19:24 +00:00
fix code bug in jsdocs (#2048)
This commit is contained in:
parent
0e7311e171
commit
4520e5812e
|
@ -87,7 +87,7 @@ function resRead(baseRes: null | msg.Base): ReadResult {
|
||||||
* const file = Deno.openSync("/foo/bar.txt");
|
* const file = Deno.openSync("/foo/bar.txt");
|
||||||
* const buf = new Uint8Array(100);
|
* const buf = new Uint8Array(100);
|
||||||
* const { nread, eof } = Deno.readSync(file.rid, buf);
|
* 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 {
|
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 file = await Deno.open("/foo/bar.txt");
|
||||||
* const buf = new Uint8Array(100);
|
* const buf = new Uint8Array(100);
|
||||||
* const { nread, eof } = await Deno.read(file.rid, buf);
|
* 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> {
|
export async function read(rid: number, p: Uint8Array): Promise<ReadResult> {
|
||||||
|
|
Loading…
Reference in a new issue