@@ -2,7 +2,7 @@ use crate::*;
22
33impl Default for FuncType {
44 fn default ( ) -> Self {
5- Self :: Unknow
5+ Self :: Unknown
66 }
77}
88
@@ -14,7 +14,7 @@ impl FromStr for FuncType {
1414 GET => Ok ( FuncType :: Get ) ,
1515 GET_MUT => Ok ( FuncType :: GetMut ) ,
1616 SET => Ok ( FuncType :: Set ) ,
17- _ => Ok ( FuncType :: Unknow ) ,
17+ _ => Ok ( FuncType :: Unknown ) ,
1818 }
1919 }
2020}
@@ -53,26 +53,26 @@ impl FuncType {
5353 * self == FuncType :: Set
5454 }
5555
56- /// Checks if the `FuncType` is `Unknow `.
56+ /// Checks if the `FuncType` is `Unknown `.
5757 ///
5858 /// # Parameters
5959 /// - `self`: The reference to the `FuncType` instance.
6060 ///
6161 /// # Returns
62- /// - `true` if the `FuncType` is `Unknow `; otherwise, `false`.
62+ /// - `true` if the `FuncType` is `Unknown `; otherwise, `false`.
6363 pub fn is_unknown ( & self ) -> bool {
64- * self == Self :: Unknow
64+ * self == Self :: Unknown
6565 }
6666
67- /// Checks if the `FuncType` is `Unknow `.
67+ /// Checks if the `FuncType` is `Unknown `.
6868 ///
6969 /// # Parameters
7070 /// - `self`: The reference to the `FuncType` instance.
7171 ///
7272 /// # Returns
73- /// - `true` if the `FuncType` is `Unknow `; otherwise, `false`.
73+ /// - `true` if the `FuncType` is `Unknown `; otherwise, `false`.
7474 pub fn is_known ( func_type_str : & str ) -> bool {
7575 let func_type: FuncType = func_type_str. parse :: < FuncType > ( ) . unwrap_or_default ( ) ;
76- func_type != Self :: Unknow
76+ func_type != Self :: Unknown
7777 }
7878}
0 commit comments