瀏覽代碼

Fix typo in code sample (#2063)

wolfg 6 年之前
父節點
當前提交
61562b45bd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/en/modules/hmc5883l.md

+ 1 - 1
docs/en/modules/hmc5883l.md

@@ -20,7 +20,7 @@ temperature multiplied with 10 (integer)
 ```lua
 local sda, scl = 1, 2
 i2c.setup(0, sda, scl, i2c.SLOW) -- call i2c.setup() only once
-hmc58831.setup()
+hmc5883l.setup()
 local x,y,z = hmc5883l.read()
 print(string.format("x = %d, y = %d, z = %d", x, y, z))
 ```