Skip to content

Commit 93e87f4

Browse files
machycekaweary
authored andcommitted
fix(docs): tinytime.render to template.render (#2)
1 parent 2aa87a4 commit 93e87f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ takes a `Date` and returns a string with the rendered data.
1616

1717
import tinytime from 'tinytime';
1818
const template = tinytime('The time is {h}:{mm}:{ss}{a}.');
19-
tinytime.render(new Date());
19+
template.render(new Date());
2020
// The time is 11:10:20PM.
2121
```
2222

@@ -65,4 +65,4 @@ function Time({ date }) {
6565
</div>
6666
)
6767
}
68-
```
68+
```

0 commit comments

Comments
 (0)