Skip to content

Commit 50ee135

Browse files
committed
Documentation
1 parent 2b138e7 commit 50ee135

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

src/lib/filehost.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// see the license for the specific language governing permissions and
1313
// limitations under the license.
1414

15-
/// Routines for access the FileHost
15+
//! Routines for access the MEGA65 FileHost
1616
1717
use anyhow::Result;
1818
use serde::{Deserialize, Serialize};

src/lib/io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// see the license for the specific language governing permissions and
1313
// limitations under the license.
1414

15-
/// Routines related to file/url/terminal I/O
15+
//! Routines related to file/url/terminal I/O
1616
1717
use cbm::disk;
1818
use cbm::disk::file::FileOps;
@@ -91,7 +91,7 @@ pub fn cbm_open(diskimage: &str) -> Result<Box<dyn cbm::disk::Disk>> {
9191
}
9292
}
9393

94-
/// Load n'th file ffrom CBM disk image and return load address and bytes
94+
/// Load n'th file from CBM disk image and return load address and bytes
9595
pub fn cbm_load_file(disk: &dyn cbm::disk::Disk, index: usize) -> Result<(u16, Vec<u8>)> {
9696
let dir = disk.directory()?;
9797
let entry = dir.get(index)

src/lib/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
// see the license for the specific language governing permissions and
1313
// limitations under the license.
1414

15-
/// Matrix65 serial communicator library
16-
///
17-
/// This contains basic features for serial communication with the
18-
/// MEGA65. Auxiliary functions for IO and access the filehost are
19-
/// also included.
15+
//! Matrix65 serial communicator library
16+
//!
17+
//! This contains basic features for serial communication with the
18+
//! MEGA65. Auxiliary functions for IO and access the filehost are
19+
//! also included.
2020
2121
pub mod serial;
22+
2223
pub mod io;
2324
pub mod filehost;

src/lib/serial.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// see the license for the specific language governing permissions and
1313
// limitations under the license.
1414

15+
//! Serial routines for comminicating with MEGA65
16+
1517
use super::io;
1618
use hex::FromHex;
1719
use log::{debug, info};

0 commit comments

Comments
 (0)