浏览代码

drk/doc: grammar edit drk help and doc comments

brid 5 月之前
父节点
当前提交
d268ae6847
共有 4 个文件被更改,包括 11 次插入11 次删除
  1. 2 2
      bin/drk/src/cli_util.rs
  2. 3 3
      bin/drk/src/dao.rs
  3. 3 3
      bin/drk/src/main.rs
  4. 3 3
      src/contract/dao/src/model.rs

+ 2 - 2
bin/drk/src/cli_util.rs

@@ -289,10 +289,10 @@ pub fn generate_completions(shell: &str) -> Result<String> {
         .help("Minimal threshold of participating total tokens needed for a proposal to pass");
 
     let early_exec_quorum = Arg::with_name("early-exec-quorum")
-        .help("Minimal threshold of participating total tokens needed for a proposal to be considered as strongly supported, enabling early execution. Must be greater or equal to normal quorum.");
+        .help("Minimal threshold of participating total tokens needed for a proposal to be considered strongly supported, enabling early execution. Must be greater than or equal to normal quorum.");
 
     let approval_ratio = Arg::with_name("approval-ratio")
-        .help("The ratio of winning votes/total votes needed for a proposal to pass (2 decimals)");
+        .help("The ratio of yes votes/total votes needed for a proposal to pass (2 decimals)");
 
     let gov_token_id = Arg::with_name("gov-token-id").help("DAO's governance token ID");
 

+ 3 - 3
bin/drk/src/dao.rs

@@ -520,10 +520,10 @@ impl DaoParams {
             ## Minimal threshold of participating total tokens needed for a proposal to pass\n\
             quorum = \"{}\"\n\n\
             ## Minimal threshold of participating total tokens needed for a proposal to\n\
-            ## be considered as strongly supported, enabling early execution.\n\
-            ## Must be greater or equal to normal quorum.\n\
+            ## be considered strongly supported, enabling early execution.\n\
+            ## Must be greater than or equal to normal quorum.\n\
             early_exec_quorum = \"{}\"\n\n\
-            ## The ratio of winning votes/total votes needed for a proposal to pass (2 decimals)\n\
+            ## The ratio of yes votes/total votes needed for a proposal to pass (2 decimals)\n\
             approval_ratio = {}\n\n\
             ## DAO's governance token ID\n\
             gov_token_id = \"{}\"\n\n\

+ 3 - 3
bin/drk/src/main.rs

@@ -306,10 +306,10 @@ enum DaoSubcmd {
         /// Minimal threshold of participating total tokens needed for a proposal to pass
         quorum: String,
         /// Minimal threshold of participating total tokens needed for a proposal to
-        /// be considered as strongly supported, enabling early execution.
-        /// Must be greater or equal to normal quorum.
+        /// be considered strongly supported, enabling early execution.
+        /// Must be greater than or equal to normal quorum.
         early_exec_quorum: String,
-        /// The ratio of winning votes/total votes needed for a proposal to pass (2 decimals)
+        /// The ratio of yes votes/total votes needed for a proposal to pass (2 decimals)
         approval_ratio: f64,
         /// DAO's governance token ID
         gov_token_id: String,

+ 3 - 3
src/contract/dao/src/model.rs

@@ -42,10 +42,10 @@ pub struct Dao {
     /// Minimal threshold of participating total tokens needed for a proposal to pass
     pub quorum: u64,
     /// Minimal threshold of participating total tokens needed for a proposal to
-    /// be considered as strongly supported, enabling early execution.
-    /// Must be greater or equal to normal quorum.
+    /// be considered strongly supported, enabling early execution.
+    /// Must be greater than or equal to normal quorum.
     pub early_exec_quorum: u64,
-    /// The ratio of winning/total votes needed for a proposal to pass
+    /// The ratio of yes/total votes needed for a proposal to pass
     pub approval_ratio_quot: u64,
     pub approval_ratio_base: u64,
     /// DAO's governance token ID