Skip to content

Commit 9b4c30e

Browse files
committed
Fix document typos and mistakes
1 parent 625c1de commit 9b4c30e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lambda-buffers-codegen/src/LambdaBuffers/Codegen/Rust/Print.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ printImports crates =
122122

123123
{- | `collectPackageDeps lbTyImports rsTyImports traitImps ruleImps valImps` collects all the package dependencies.
124124
125-
Note that LB `lbTyImports` and `ruleImps` are wired by the user (as the user decides on the package name for their schemass), so the imports inside the modules
126-
is different from the crate list in `build.js`. These are returned as a tuple as `(imports, buildDeps)`
125+
Note that LB `lbTyImports` and `ruleImps` are wired by the user (as the user decides on the package name for their schemas), so the imports inside the modules
126+
is different from the crate list in `build.json`. These are returned as a tuple as `(imports, buildDeps)`
127127
-}
128128
collectPackageDeps :: Set PC.QTyName -> Set R.QTyName -> Set R.QTraitName -> Set (PC.InfoLess PC.ModuleName) -> Set R.QValName -> (Set R.CrateName, Set R.CrateName)
129129
collectPackageDeps lbTyImports rsTyImports traitImps ruleImps valImps =

lambda-buffers-codegen/src/LambdaBuffers/Codegen/Rust/Print/LamVal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,13 +378,13 @@ printValueE iTyDefs (LV.CaseTextE txtVal cases otherCase) = printCaseTextE iTyDe
378378
printValueE iTyDefs (LV.TupleE l r) = printTupleE iTyDefs l r
379379
printValueE _ (LV.ErrorE err) = throwInternalError $ "LamVal error builtin was called " <> err
380380

381-
-- | This is a hack, to help Rust figure out types of closures (lambda expressions)
381+
-- | HACK(szg251): This is a hack, to help Rust figure out types of closures (lambda expressions)
382382
printInstance :: MonadPrint m => [R.QTyName] -> PC.TyDefs -> LV.ValueE -> m (Doc ann)
383383
printInstance [] iTyDefs lamVal = printValueE iTyDefs lamVal
384384
printInstance argTys iTyDefs (LV.LamE lamVal) = printInstanceLamE argTys iTyDefs lamVal
385385
printInstance _ _ _ = throwInternalError "LamE expression expected with predefined argument types"
386386

387-
-- | This is a hack, to help Rust figure out types of closures (lambda expressions)
387+
-- | HACK(szg251): This is a hack, to help Rust figure out types of closures (lambda expressions)
388388
printInstanceLamE :: MonadPrint m => [R.QTyName] -> PC.TyDefs -> (LV.ValueE -> LV.ValueE) -> m (Doc ann)
389389
printInstanceLamE [] _ _ = throwInternalError "LamE expression expected with predefined argument types"
390390
printInstanceLamE (argTy : argTys) iTyDefs lamVal = do

0 commit comments

Comments
 (0)