diff options
| author | Carlos Eduardo | 2021-04-14 22:38:41 -0300 |
|---|---|---|
| committer | GitHub | 2021-04-14 18:38:41 -0700 |
| commit | f39ec2ef5a3b2140b43d631056c2f974ca1895d5 (patch) | |
| tree | 7108627f257d65585ba39fcb8af936f611102913 /docs/src/explanations/polymorphism-and-parameterization.md | |
| parent | 6e22d91ed31206292f9f8b02a89fe18885ad602d (diff) | |
Fix doc formatting and generation (#1863)
* Remove space between backticks and language
* Make code examples in memories explanation work
Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'docs/src/explanations/polymorphism-and-parameterization.md')
| -rw-r--r-- | docs/src/explanations/polymorphism-and-parameterization.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/src/explanations/polymorphism-and-parameterization.md b/docs/src/explanations/polymorphism-and-parameterization.md index 94b896b1..9b69ed05 100644 --- a/docs/src/explanations/polymorphism-and-parameterization.md +++ b/docs/src/explanations/polymorphism-and-parameterization.md @@ -231,7 +231,10 @@ class X[T <: BaseModule with MyAdder](genT: => T) extends Module { println(ChiselStage.emitVerilog(new X(new Mod1))) println(ChiselStage.emitVerilog(new X(new Mod2))) ``` -```scala mdoc:passthrough -println(ChiselStage.emitVerilog(new X(new Mod1))) -println(ChiselStage.emitVerilog(new X(new Mod2))) + +Output: + +```scala mdoc:verilog +ChiselStage.emitVerilog(new X(new Mod1)) +ChiselStage.emitVerilog(new X(new Mod2)) ``` |
