Skip to content

Commit 32e5eca

Browse files
committed
docstrings++
1 parent e355bcf commit 32e5eca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
use pyo3::prelude::*;
33

44
#[pymodule]
5+
/// This is a PyO3 demo library used to verify that submodules are handled properly.
56
fn pdoc_pyo3_sample_library(py: Python<'_>, m: &PyModule) -> PyResult<()> {
67

78
let submodule = PyModule::new(py, "submodule")?;
@@ -30,6 +31,7 @@ fn pdoc_pyo3_sample_library(py: Python<'_>, m: &PyModule) -> PyResult<()> {
3031
}
3132

3233
#[pyfunction]
34+
/// A method implemented in Rust.
3335
fn func() -> String {
3436
"func".to_string()
3537
}

0 commit comments

Comments
 (0)