Fix doc comments

This commit is contained in:
Ayaz Hafiz 2023-07-12 17:16:12 -05:00
parent a2574a5a98
commit 00730be6fb
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 11 additions and 11 deletions

View file

@ -121,13 +121,13 @@ fn build_function_pointer<'a>(
/// Given
///
/// ```
/// ```text
/// Call(f, args)
/// ```
///
/// We generate
///
/// ```
/// ```text
/// f = compile(f)
/// joinpoint join result:
/// <hole>
@ -264,13 +264,13 @@ pub fn call_erased_function<'a>(
/// Given
///
/// ```
/// ```text
/// f = \{} -> s
/// ```
///
/// We generate
///
/// ```
/// ```text
/// value = Expr::Box({s})
/// callee = Expr::FunctionPointer(f)
/// f = Expr::ErasedMake({ value, callee })
@ -278,13 +278,13 @@ pub fn call_erased_function<'a>(
///
/// Given
///
/// ```
/// ```text
/// f = \{} -> {}
/// ```
///
/// We generate
///
/// ```
/// ```text
/// callee = Expr::FunctionPointer(f)
/// f = Expr::ErasedMake({ value: nullptr, callee })
/// ```
@ -429,14 +429,14 @@ impl<'a> ResolvedErasedLambda<'a> {
/// Given
///
/// ```
/// ```text
/// proc f(...args, captures_symbol: Erased):
/// # captures = { a: A, b: B }
/// ```
///
/// We generate
///
/// ```
/// ```text
/// loaded_captures: Ptr<[]> = ErasedLoad(captures_symbol, .value)
/// heap_captures: Box<{ A, B }> = Expr::Call(Lowlevel { Cast, captures_symbol })
/// stack_captures = Expr::Unbox(heap_captures)