Преглед на файлове

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>
 
 		<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>