Skip to content

Commit

Permalink
docs: correct loadBuffer() name (#4270)
Browse files Browse the repository at this point in the history
  • Loading branch information
arichardsmith authored Dec 1, 2024
1 parent a0e7512 commit 7dd43d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { load } from './load-parse.js';
* import * as cheerio from 'cheerio';
*
* const buffer = fs.readFileSync('index.html');
* const $ = cheerio.fromBuffer(buffer);
* const $ = cheerio.loadBuffer(buffer);
* ```
*
* @param buffer - The buffer to sniff the encoding of.
Expand Down

0 comments on commit 7dd43d7

Please sign in to comment.