Modify comments for cargo doc

This commit is contained in:
Minseong Jang
2022-02-27 22:39:21 +09:00
parent 9ea9eb8f4e
commit 6f0df5a4b8
4 changed files with 31 additions and 16 deletions

View File

@@ -221,7 +221,8 @@ pub enum Instruction {
target_dtype: Dtype,
},
/// `GetElementPtr` is inspired from `getelementptr` instruction of LLVM.
/// https://llvm.org/docs/LangRef.html#i-getelementptr
///
/// For more details: <https://llvm.org/docs/LangRef.html#i-getelementptr>
GetElementPtr {
ptr: Operand,
offset: Operand,
@@ -501,7 +502,8 @@ pub enum Constant {
///
/// * Casting from an f32 to an f64 is perfect and lossless (f32 -> f64)
/// * Casting from an f64 to an f32 will produce the closest possible value (f64 -> f32)
/// https://doc.rust-lang.org/stable/reference/expressions/operator-expr.html#type-cast-expressions
///
/// For more details: <https://doc.rust-lang.org/stable/reference/expressions/operator-expr.html#type-cast-expressions>
value: OrderedFloat<f64>,
width: usize,
},