Skip to content

Commit

Permalink
docs(ir): pretend to be contributing orz
Browse files Browse the repository at this point in the history
  • Loading branch information
FlandreScarlet36 authored and JuniMay committed Feb 25, 2024
1 parent 213a4b5 commit 2acfdd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ir/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ pub trait LocalValueBuilder: QueryDfgData + AddValue + ConstantBuilder {
self.add_value(Load::new_value_data(ty, ptr))
}

/// Build a cast instruction
/// Build a cast instruction.
fn cast(&mut self, op: CastOp, ty: Type, val: Value) -> Result<Value, BuilderErr> {
self.add_value(Cast::new_value_data(op, ty, val))
}
Expand Down
6 changes: 3 additions & 3 deletions src/ir/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ pub enum FunctionKind {

/// Data of function.
pub struct FunctionData {
/// Name of the function.
/// Name of the function
name: String,
/// Type of the function.
/// Type of the function
ty: Type,
/// The kind of the function
kind: FunctionKind,
Expand Down Expand Up @@ -176,7 +176,7 @@ pub enum ValueKind {

/// Function
///
/// Functions are also global values. The data and instructions are stored in `FunctionData`
/// Functions are also global values. The data and instructions are stored in `FunctionData`.
Function,
}

Expand Down

0 comments on commit 2acfdd9

Please sign in to comment.