浏览代码

1-based indices in success message

Mark Rousskov 5 年之前
父节点
当前提交
736d6ead6a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/zulip.rs

+ 2 - 1
src/zulip.rs

@@ -151,7 +151,8 @@ async fn move_notification(
     .await
     {
         Ok(()) => Ok(serde_json::to_string(&Response {
-            content: &format!("Moved {} to {}.", from, to),
+            // to 1-base indices
+            content: &format!("Moved {} to {}.", from + 1, to + 1),
         })
         .unwrap()),
         Err(e) => Ok(serde_json::to_string(&Response {