From 525de52d687b44fb14be7da2c46c548eb8a32fbd Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Mon, 17 Jun 2024 03:52:59 +0800 Subject: refactor(examples): update file tree --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 6b44509..ac54f62 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,14 +1,13 @@ use pyo3::prelude::*; -/// Formats the sum of two numbers as string. #[pyfunction] fn sum_as_string(a: usize, b: usize) -> PyResult { Ok((a + b).to_string()) } -/// A Python module implemented in Rust. #[pymodule] fn hydro_roll(_py: Python, m: &PyModule) -> PyResult<()> { m.add_function(wrap_pyfunction!(sum_as_string, m)?)?; Ok(()) } + -- cgit v1.2.3-70-g09d2