mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 12:58:54 -05:00
Fix example (#5775)
This commit is contained in:
parent
6feca0ef8b
commit
94f1de5f80
1 changed files with 4 additions and 4 deletions
8
cli/js/lib.deno.ns.d.ts
vendored
8
cli/js/lib.deno.ns.d.ts
vendored
|
@ -62,7 +62,7 @@ declare namespace Deno {
|
|||
*
|
||||
* Deno.test({
|
||||
* name: "example ignored test",
|
||||
* ignore: Deno.build.os === "windows"
|
||||
* ignore: Deno.build.os === "windows",
|
||||
* fn(): void {
|
||||
* // This test is ignored only on Windows machines
|
||||
* },
|
||||
|
@ -73,7 +73,7 @@ declare namespace Deno {
|
|||
* async fn() {
|
||||
* const decoder = new TextDecoder("utf-8");
|
||||
* const data = await Deno.readFile("hello_world.txt");
|
||||
* assertEquals(decoder.decode(data), "Hello world")
|
||||
* assertEquals(decoder.decode(data), "Hello world");
|
||||
* }
|
||||
* });
|
||||
* ```
|
||||
|
@ -94,7 +94,7 @@ declare namespace Deno {
|
|||
* Deno.test("My async test description", async ():Promise<void> => {
|
||||
* const decoder = new TextDecoder("utf-8");
|
||||
* const data = await Deno.readFile("hello_world.txt");
|
||||
* assertEquals(decoder.decode(data), "Hello world")
|
||||
* assertEquals(decoder.decode(data), "Hello world");
|
||||
* });
|
||||
* ```
|
||||
* */
|
||||
|
@ -1828,7 +1828,7 @@ declare namespace Deno {
|
|||
* ```ts
|
||||
* const obj = {};
|
||||
* obj.propA = 10;
|
||||
* obj.propB = "hello"
|
||||
* obj.propB = "hello";
|
||||
* const objAsString = Deno.inspect(obj); // { propA: 10, propB: "hello" }
|
||||
* console.log(obj); // prints same value as objAsString, e.g. { propA: 10, propB: "hello" }
|
||||
* ```
|
||||
|
|
Loading…
Reference in a new issue