diff --git a/src/index.ts b/src/index.ts index d8e3292194..681a31138e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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.