summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrivikram Kamat <16024985+trivikr@users.noreply.github.com>2020-09-26 14:56:03 -0700
committerGitHub <noreply@github.com>2020-09-27 07:56:03 +1000
commit30252e25b8b833c71603629a2187d177140d7740 (patch)
tree7aadd33d3aad484635f8c7998008e129ca73724f
parent52c67d301c6043e3b5db874ddc3b1d0d2abd1a04 (diff)
docs: update --unstable flag forget message (#7708)
-rw-r--r--docs/standard_library.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/standard_library.md b/docs/standard_library.md
index ada5b36e7..37ed550f4 100644
--- a/docs/standard_library.md
+++ b/docs/standard_library.md
@@ -51,15 +51,15 @@ Compile file:///dev/deno/main.ts
Download https://deno.land/std@$STD_VERSION/fs/copy.ts
Download https://deno.land/std@$STD_VERSION/fs/ensure_dir.ts
Download https://deno.land/std@$STD_VERSION/fs/_util.ts
-error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'.
+error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the '--unstable' flag?
await Deno.utime(dest, statInfo.atime, statInfo.mtime);
~~~~~
- at https://deno.land/std@$STD_VERSION/fs/copy.ts:90:16
+ at https://deno.land/std@$STD_VERSION/fs/copy.ts:92:16
-TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'.
+TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag?
Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
~~~~~~~~~
- at https://deno.land/std@$STD_VERSION/fs/copy.ts:101:10
+ at https://deno.land/std@$STD_VERSION/fs/copy.ts:103:10
```
Solution to that problem requires adding `--unstable` flag: