Skip to content

Commit

Permalink
docs(fs): correct spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Aug 17, 2023
1 parent 603873c commit 1969d18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/fs/src/file.system.abstraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class FileSystemAbstraction implements FileSystem {

/**
* Attempt to parse a path like object as into a URL
* Falling back onto `pathToFileURL` if the URL parsing failes
* Falling back onto `pathToFileURL` if the URL parsing fails
*/
toUrl(str: string): URL {
try {
Expand All @@ -37,10 +37,11 @@ export class FileSystemAbstraction implements FileSystem {
* Register a file system to a specific path which can then be used with any `fsa` command
*
* @example
* ```typescript
* fsa.register('s3://', fsS3, 'rw')
* fsa.register('s3://bucket-a/key-a', specificS3, 'r')
* fsa.register('http://', fsHttp)
*
* ```
*/
register(prefix: string, system: FileSystem, flag: Flag = 'rw'): void {
for (let i = 0; i < this.systems.length; i++) {
Expand Down

0 comments on commit 1969d18

Please sign in to comment.