Skip to content

Commit

Permalink
kernel/task/exec: Update comment
Browse files Browse the repository at this point in the history
Update the comment section for exec_user() to correctly document its
return type.

Signed-off-by: Peter Fang <peter.fang@intel.com>
  • Loading branch information
peterfang committed Feb 7, 2025
1 parent 565fd46 commit 68bbcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/src/task/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn task_name(binary: &str) -> String {
///
/// # Returns
///
/// `()` on success, [`SvsmError`] on failure.
/// Returns [`Ok(tid)`] on success, [`Err(SvsmError)`] on failure.
pub fn exec_user(binary: &str, root: Arc<dyn Directory>) -> Result<u32, SvsmError> {
let fh = open_read(binary)?;
let file_size = fh.size();
Expand Down

0 comments on commit 68bbcbd

Please sign in to comment.