Răsfoiți Sursa

bad import example in docs (#25813)

* fix import statement in docs (en)

* fix import statement in docs (zh)
makc 2 ani în urmă
părinte
comite
a15bce870e

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

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

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

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