浏览代码

bad import example in docs (#25813)

* fix import statement in docs (en)

* fix import statement in docs (zh)
makc 2 年之前
父节点
当前提交
a15bce870e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      docs/examples/en/utils/BufferGeometryUtils.html
  2. 1 1
      docs/examples/zh/utils/BufferGeometryUtils.html

+ 1 - 1
docs/examples/en/utils/BufferGeometryUtils.html

@@ -21,7 +21,7 @@
 		</p>
 		</p>
 
 
 		<code>
 		<code>
-			import { BufferGeometryUtils } from 'three/addons/utils/BufferGeometryUtils.js';
+			import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
 		</code>
 		</code>
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>

+ 1 - 1
docs/examples/zh/utils/BufferGeometryUtils.html

@@ -21,7 +21,7 @@
 		</p>
 		</p>
 
 
 		<code>
 		<code>
-			import { BufferGeometryUtils } from 'three/addons/utils/BufferGeometryUtils.js';
+			import * as BufferGeometryUtils from 'three/addons/utils/BufferGeometryUtils.js';
 		</code>
 		</code>
 
 
 		<h2>方法</h2>
 		<h2>方法</h2>