Skip to content

Commit af6d0df

Browse files
Shiven0504claude
andauthored
Fix typos in comments and doc comments across crates (#4560)
## Summary - Fix `Deerialize` → `Deserialize` in doc comments for `ser.rs` and `typespace.rs` (these are in developer-facing trait documentation) - Fix `thier` → `their`, `reinintializes` → `reinitializes`, `occurence` → `occurrence`, `secion` → `section` across 4 other crates ## Details Six typo fixes across 6 files, no logic changes: | File | Typo | Fix | |------|------|-----| | `crates/sats/src/ser.rs:280` | `Deerialize` | `Deserialize` | | `crates/sats/src/typespace.rs:303` | `Deerialize` | `Deserialize` | | `crates/table/src/table.rs:460` | `thier` | `their` | | `crates/schema/tests/ensure_same_schema.rs:21` | `reinintializes` | `reinitializes` | | `crates/lib/src/http.rs:131` | `occurence` | `occurrence` | | `crates/bindings/src/lib.rs:763` | `secion` | `section` | ## Test plan - [ ] No logic changes — comments and doc comments only - [ ] CI should pass without issues Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c5743cf commit af6d0df

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

crates/bindings/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ pub use spacetimedb_bindings_macro::reducer;
760760
// TODO(procedure-transaction): document obtaining and using a transaction within a procedure.
761761
///
762762
/// # Scheduled procedures
763-
// TODO(docs): after moving scheduled reducer docs into table secion, link there.
763+
// TODO(docs): after moving scheduled reducer docs into table section, link there.
764764
///
765765
/// Like [reducer]s, procedures can be made **scheduled**.
766766
/// This allows calling procedures at a particular time, or in a loop.

crates/lib/src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Headers {
128128
/// The sum of the lengths of all the header names and header values.
129129
///
130130
/// For headers with multiple values for the same header name,
131-
/// the length of the header name is counted once for each occurence.
131+
/// the length of the header name is counted once for each occurrence.
132132
fn size_in_bytes(&self) -> usize {
133133
self.entries
134134
.iter()

crates/sats/src/ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pub trait Serializer: Sized {
277277
/// See the documentation of `serde::Serialize` for more information of the data model.
278278
///
279279
/// Do not manually implement this trait unless you know what you are doing.
280-
/// Implementations must be consistent with `Deerialize<'de> for T`, `SpacetimeType for T` and `Serialize, Deserialize for AlgebraicValue`.
280+
/// Implementations must be consistent with `Deserialize<'de> for T`, `SpacetimeType for T` and `Serialize, Deserialize for AlgebraicValue`.
281281
/// Implementations that are inconsistent across these traits may result in data loss.
282282
///
283283
/// [`serde`]: https://crates.io/crates/serde

crates/sats/src/typespace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pub trait GroundSpacetimeType {
300300
/// (Storing collections in rows of a database table is a form of [denormalization](https://en.wikipedia.org/wiki/Denormalization).)
301301
///
302302
/// Do not manually implement this trait unless you are VERY sure you know what you're doing.
303-
/// Implementations must be consistent with `Deerialize<'de> for T`, `Serialize for T` and `Serialize, Deserialize for AlgebraicValue`.
303+
/// Implementations must be consistent with `Deserialize<'de> for T`, `Serialize for T` and `Serialize, Deserialize for AlgebraicValue`.
304304
/// Implementations that are inconsistent across these traits may result in data loss.
305305
///
306306
/// N.B.: It's `SpacetimeType`, not `SpaceTimeType`.

crates/schema/tests/ensure_same_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn assert_identical_modules(module_name_prefix: &str, lang_name: &str, suffix: &
1818
.steps;
1919

2020
// In any migration plan, all `RowLevelSecurityDef`s are ALWAYS removed and
21-
// re-added to ensure the core engine reinintializes the policies.
21+
// re-added to ensure the core engine reinitializes the policies.
2222
// This is slightly silly (and arguably should be hidden inside `core`),
2323
// but for now, we just ignore these steps and manually compare the `RowLevelSecurityDef`s.
2424
diff.retain(|step| {

crates/table/src/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ impl Table {
457457
self.validate_row_type_layout(&new_row_layout, new_columns)
458458
.map_err(|e| make_err(e.reason.into()))?;
459459

460-
// Validate that all new columns have default values and thier types match.
460+
// Validate that all new columns have default values and their types match.
461461
for (idx, new_col) in new_columns.iter().skip(existing_columns.len()).enumerate() {
462462
let default_value = default_values
463463
.get(idx)

0 commit comments

Comments
 (0)