mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-15 22:48:45 +00:00
polish
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
//! Assignment 1: Preparing Rust Development Environment.
|
||||
//! Welcome to the CS220 course!
|
||||
//!
|
||||
//! You should fill out `add()` and `sub()` function bodies in such a way that `/scripts/grade-01.sh` works fine.
|
||||
//! See `small_problems_grade.rs` and `/scripts/grade-01.sh` for the test script.
|
||||
//!
|
||||
//! Hint: <https://doc.rust-lang.org/std/primitive.usize.html>
|
||||
|
||||
/// Adds two unsigned words. If overflow happens, just wrap around.
|
||||
pub fn add(lhs: usize, rhs: usize) -> usize {
|
||||
|
||||
Reference in New Issue
Block a user