Skip to content

Commit

Permalink
翻译 Deno.hostname (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwc authored Apr 14, 2020
1 parent 59faea5 commit 2825577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ declare namespace Deno {
*/
export function loadavg(): number[];

/** Get the `hostname` of the machine the Deno process is running on.
/** 获取 Deno 进程所在的计算机主机名(`hostname`)。
*
* console.log(Deno.hostname());
*
* Requires `allow-env` permission.
* 需要 `allow-env` 权限。
*/
export function hostname(): string;

Expand Down

0 comments on commit 2825577

Please sign in to comment.