Skip to content

doc: code example contains errors in crypto api #38540

Description

@JBaczuk

📗 API Reference Docs Problem

  • Version: 16.1.0
  • Platform: N/A
  • Subsystem: crypto

Location

Section of the site where the content exists

Affected URL(s):

Description

Concise explanation of the problem

const {
  createECDH,
  createHash,
} = await crypto('crypto');

Should be

const {
  createECDH,
  createHash,
} = await import('crypto');

  • I would like to work on this issue and
    submit a pull request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions