소스 검색

chore(types): add comment for ver type

JianBo He 4 년 전
부모
커밋
f36abc281a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/emqx_types.erl

+ 3 - 1
src/emqx_types.erl

@@ -95,7 +95,9 @@
              | ?MQTT_PROTO_V4
              | ?MQTT_PROTO_V5
              | non_neg_integer()
-             | binary()).
+             %% Some non-MQTT versions of protocol may be a binary type
+             | binary()
+             ).
 
 -type(qos() :: ?QOS_0 | ?QOS_1 | ?QOS_2).
 -type(qos_name() :: qos0 | at_most_once |