doc(code): fix typo

This commit is contained in:
07akioni 2019-12-22 15:58:51 +08:00
parent 755235d51e
commit 7c39efdb24

View File

@ -12,7 +12,7 @@ The following code shows how to set hljs of Naive UI. Importing highlight.js on
import Vue from 'vue'
import NaiveUI from 'naive-ui'
import hljs from 'highlight.js/lib/highlight'
import javascript from 'highlight.js/lib/languages/javascript'
import cpp from 'highlight.js/lib/languages/cpp'
hljs.registerLanguage('cpp', cpp)
Vue.use(NaiveUI)