Replace em dashes with hyphens across docs and comments

This commit is contained in:
2026-08-29 08:13:54 +00:00
parent 7fc76f0ad1
commit 791b5135f4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
use crate::error::{Error, Result};
use std::collections::BTreeMap;
/// XORs every byte together the standard Marlin/RepRap G-code checksum.
/// XORs every byte together - the standard Marlin/RepRap G-code checksum.
/// Covers everything before the `*`, including a leading `N<n> ` line number
/// if present.
pub fn compute_checksum(data: &[u8]) -> u8 {
@@ -38,7 +38,7 @@ pub fn append_checksum(line: &str) -> String {
/// settings this way at the top of the file.
///
/// This only handles that one format. Real slicer output has more variety
/// (Cura's `;KEY:value` style, free-form "generated by ..." comments)
/// (Cura's `;KEY:value` style, free-form "generated by ..." comments) -
/// add support for those once this simple version makes sense.
pub fn parse_header(gcode: &str) -> BTreeMap<String, String> {
let mut fields = BTreeMap::new();