mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 20:25:12 -05:00
Fix comments in stat.ts file
This commit is contained in:
parent
0ef28bec4d
commit
0040486539
1 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ export class FileInfo {
|
||||||
* be returned.
|
* be returned.
|
||||||
*
|
*
|
||||||
* import { lstat } from "deno";
|
* import { lstat } from "deno";
|
||||||
* const fileInfo = await deno.lstat("hello.txt");
|
* const fileInfo = await lstat("hello.txt");
|
||||||
* assert(fileInfo.isFile());
|
* assert(fileInfo.isFile());
|
||||||
*/
|
*/
|
||||||
export async function lstat(filename: string): Promise<FileInfo> {
|
export async function lstat(filename: string): Promise<FileInfo> {
|
||||||
|
@ -99,7 +99,7 @@ export async function lstat(filename: string): Promise<FileInfo> {
|
||||||
* be returned.
|
* be returned.
|
||||||
*
|
*
|
||||||
* import { lstatSync } from "deno";
|
* import { lstatSync } from "deno";
|
||||||
* const fileInfo = deno.lstatSync("hello.txt");
|
* const fileInfo = lstatSync("hello.txt");
|
||||||
* assert(fileInfo.isFile());
|
* assert(fileInfo.isFile());
|
||||||
*/
|
*/
|
||||||
export function lstatSync(filename: string): FileInfo {
|
export function lstatSync(filename: string): FileInfo {
|
||||||
|
@ -111,7 +111,7 @@ export function lstatSync(filename: string): FileInfo {
|
||||||
* `stat` Will always follow symlinks.
|
* `stat` Will always follow symlinks.
|
||||||
*
|
*
|
||||||
* import { stat } from "deno";
|
* import { stat } from "deno";
|
||||||
* const fileInfo = await deno.stat("hello.txt");
|
* const fileInfo = await stat("hello.txt");
|
||||||
* assert(fileInfo.isFile());
|
* assert(fileInfo.isFile());
|
||||||
*/
|
*/
|
||||||
export async function stat(filename: string): Promise<FileInfo> {
|
export async function stat(filename: string): Promise<FileInfo> {
|
||||||
|
@ -123,7 +123,7 @@ export async function stat(filename: string): Promise<FileInfo> {
|
||||||
* `statSync` Will always follow symlinks.
|
* `statSync` Will always follow symlinks.
|
||||||
*
|
*
|
||||||
* import { statSync } from "deno";
|
* import { statSync } from "deno";
|
||||||
* const fileInfo = deno.statSync("hello.txt");
|
* const fileInfo = statSync("hello.txt");
|
||||||
* assert(fileInfo.isFile());
|
* assert(fileInfo.isFile());
|
||||||
*/
|
*/
|
||||||
export function statSync(filename: string): FileInfo {
|
export function statSync(filename: string): FileInfo {
|
||||||
|
|
Loading…
Add table
Reference in a new issue