From 42e783ccf17fea9eec06ef8a6cb6d38773c95d77 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 3 Feb 2021 23:28:14 -0800 Subject: [PATCH] Clarification on failure return value in delete trait method --- json-api/db/src/channels.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json-api/db/src/channels.rs b/json-api/db/src/channels.rs index 59e7cc6..8effdcb 100644 --- a/json-api/db/src/channels.rs +++ b/json-api/db/src/channels.rs @@ -83,8 +83,8 @@ impl FromDB for Channel { //! Deletes channel given UBigInt as the row key //! @param p -> SqlPool //! @param id -> UBigInt - //! @return on_success -> Response::Success - //! @return on_failure -> Response::Other + //! @return on success -> Response::Success + //! @return on server failure -> Response::Other if let Ok(conn) = p.get_conn().await { let q = "DELETE FROM channels WHERE id = :id"; let result: Result =