Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Fixed docs & const usage
Browse files Browse the repository at this point in the history
  • Loading branch information
luvies committed Jun 24, 2021
1 parent 110445e commit 65b9f16
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"deno.suggest.imports.hosts": {
"https://deno.land": true
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This module is meant to provide memory-efficient lazy-evaluation iteration for i
Use the following import:

```ts
import { Lazy } from 'https://deno.land/x/lazy@v{version}/mod.ts';
import { Lazy } from 'https://deno.land/x/lazy@v{version}/lib/mod.ts';
```

Make sure the `@v{version}` tag is the correct one you want. I'd recommend against master, as it could change without notice & might be broken (although I will try not to break it).
Expand Down Expand Up @@ -79,12 +79,12 @@ The `Lazy` class is the root of the module, all things come from it and are deri

```ts
// Static method import.
import { Lazy } from 'https://deno.land/x/lazy@v{version}/mod.ts';
import { Lazy } from 'https://deno.land/x/lazy@v{version}/lib/mod.ts';

const iterable = Lazy.from([1, 2, 3, 4, 5]);

// Direct function import.
import { from } from 'https://deno.land/x/lazy@v{version}/mod.ts';
import { from } from 'https://deno.land/x/lazy@v{version}/lib/mod.ts';

const iterable = from([1, 2, 3, 4, 5]);
```
Expand Down
6 changes: 3 additions & 3 deletions lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This module is meant to provide memory-efficient lazy-evaluation iteration for i
Use the following import:

```ts
import { Lazy } from 'https://deno.land/x/lazy@v{version}/mod.ts';
import { Lazy } from 'https://deno.land/x/lazy@v{version}/lib/mod.ts';
```

Make sure the `@v{version}` tag is the correct one you want. I'd recommend against master, as it could change without notice & might be broken (although I will try not to break it).
Expand Down Expand Up @@ -79,12 +79,12 @@ The `Lazy` class is the root of the module, all things come from it and are deri

```ts
// Static method import.
import { Lazy } from 'https://deno.land/x/lazy@v{version}/mod.ts';
import { Lazy } from 'https://deno.land/x/lazy@v{version}/lib/mod.ts';

const iterable = Lazy.from([1, 2, 3, 4, 5]);

// Direct function import.
import { from } from 'https://deno.land/x/lazy@v{version}/mod.ts';
import { from } from 'https://deno.land/x/lazy@v{version}/lib/mod.ts';

const iterable = from([1, 2, 3, 4, 5]);
```
Expand Down
2 changes: 1 addition & 1 deletion lib/iterators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ export class LazySelectIterator<TSource, TResult> implements Iterator<TResult> {
const nextResult = {
done: false,
value: this._selector(result.value, this._index),
} as const;
};
this._index++;

return nextResult;
Expand Down
2 changes: 1 addition & 1 deletion test/deps/std/testing/asserts.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from 'https://deno.land/std@0.83.0/testing/asserts.ts';
export * from 'https://deno.land/std@0.99.0/testing/asserts.ts';

0 comments on commit 65b9f16

Please sign in to comment.