소스 검색

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 {