浏览代码

Fixing mistake in image class

Sergei ZH 8 年之前
父节点
当前提交
024c4f14a1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      doc/classes/Image.xml

+ 3 - 3
doc/classes/Image.xml

@@ -376,12 +376,12 @@
 			<argument index="2" name="color" type="Color">
 			</argument>
 			<description>
-				Sets the [Color] of the pixel at [code](x, y)[/code] if the image is unlocked. Example:
+				Sets the [Color] of the pixel at [code](x, y)[/code] if the image is locked. Example:
 				[codeblock]
 				var img = Image.new()
-				img.lock()
-				img.set_pixel(x, y, color) # Does not have an effect
 				img.unlock()
+				img.set_pixel(x, y, color) # Does not have an effect
+				img.lock()
 				img.set_pixel(x, y, color) # Works
 				[/codeblock]
 			</description>