Skip to content

Commit

Permalink
docs: fix code example
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlup committed Nov 2, 2023
1 parent fe0d791 commit 173075c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,11 @@ Node [diagnostics channel](https://nodejs.org/dist/latest-v20.x/docs/api/diagnos
const diagnosticsChannel = require('diagnostics_channel')
const doc = require('@dnlup/doc)
diagnostics_channel.subscribe(doc.constants.DOC_CHANNEL, s => {
diagnosticsChannel.subscribe(doc.constants.DOC_CHANNEL, s => {
console.log('A new instance', s)
})
diagnostics_channel.subscribe(doc.constants.DOC_SAMPLES_CHANNEL, s => {
diagnosticsChannel.subscribe(doc.constants.DOC_SAMPLES_CHANNEL, s => {
console.log('A new sample', s)
})
Expand Down

0 comments on commit 173075c

Please sign in to comment.