瀏覽代碼

(fix) readme syntax

Michael Redig 2 年之前
父節點
當前提交
1d88c77570
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -14,7 +14,7 @@ import SwiftSerial
 let serialPort = SerialPort(path: "/dev/cu.usbmodem1234") // you'll need to find the correct device on your own, but this is what it will resemble on a mac
 try serialPort.openPort()
 
-serialPort.setSettings(
+try serialPort.setSettings(
 	baudRateSetting: .symmetrical(.baud115200),
 	minimumBytesToRead: 1)