docs: fix buffer import example in README.md
This commit is contained in:
parent
a2151cab25
commit
887ed9318a
|
@ -154,7 +154,7 @@ import path from 'path';
|
||||||
It may be necessary in certain cases to shim the node.js [Buffer object](http://nodejs.org/api/buffer.html). This can be impoerted as follows:
|
It may be necessary in certain cases to shim the node.js [Buffer object](http://nodejs.org/api/buffer.html). This can be impoerted as follows:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import path from 'path';
|
import { Buffer } from 'buffer';
|
||||||
```
|
```
|
||||||
|
|
||||||
As such it can be shimmed in much the same way as path and fs:
|
As such it can be shimmed in much the same way as path and fs:
|
||||||
|
|
Loading…
Reference in New Issue