Fix cargo doc

This commit is contained in:
Minseong Jang
2022-09-12 06:08:22 +09:00
parent 8502a39e45
commit 04cfaf7b77
4 changed files with 17 additions and 15 deletions

View File

@@ -6,14 +6,14 @@
//! You should fill out `add()` and `sub()` function bodies in such a way that `/scripts/grade-01.sh` works fine.
//! See `assignment01_grade.rs` and `/scripts/grade-01.sh` for the test script.
//!
//! Hint: https://doc.rust-lang.org/std/primitive.usize.html
//! Hint: <https://doc.rust-lang.org/std/primitive.usize.html>
/// Adds two unsigned words. If overflow happens, just wrap around.
pub(crate) fn add(lhs: usize, rhs: usize) -> usize {
pub fn add(lhs: usize, rhs: usize) -> usize {
todo!()
}
/// Subtracts two unsigned words. If overflow happens, just wrap around.
pub(crate) fn sub(lhs: usize, rhs: usize) -> usize {
pub fn sub(lhs: usize, rhs: usize) -> usize {
todo!()
}