Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit fec93d9

Browse files
chartgerinkJoe Hand
authored andcommitted
Update readme.md (#184)
Suggest change in docs of using the get() method for calling the stats on a dat object.
1 parent 972c2a5 commit fec93d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ You can use a `.datignore` file in the imported directory, `src`, to ignore any
342342

343343
Emitted when archive stats are updated. Get new stats with `stats.get()`.
344344

345-
##### `var st = stats.get()`
345+
##### `var st = dat.stats.get()`
346346

347-
Get general archive stats for the latest version:
347+
`dat.trackStats()` adds a `stats` object to `dat`. Get general archive stats for the latest version:
348348

349349
```js
350350
{

0 commit comments

Comments
 (0)