Skip to content
Snippets Groups Projects
Commit fb7c14b2 authored by Ryan Scott's avatar Ryan Scott Committed by Matthew Pickering
Browse files

Fix code typo in ghc-debug-client example

The `ghc-debug-client` example refers to an out-of-scope variable `h`, which I
believe is meant to refer to `g` instead.
parent 82da0bb0
No related branches found
Tags ghc-8.4.1-alpha3
No related merge requests found
......@@ -47,7 +47,7 @@ p1 e = do
precacheBlocks
(r:_) <- gcRoots
buildHeapGraph (Just 10) r
putStrLn (ppHeapGraph (const "") h)
putStrLn (ppHeapGraph (const "") g)
```
The API for writing debuggers is described in the `GHC.Debug.Client` module.
......
......@@ -12,7 +12,7 @@ p1 e = do
precacheBlocks
(r:_) <- gcRoots
buildHeapGraph (Just 10) r
putStrLn (ppHeapGraph (const "") h)
putStrLn (ppHeapGraph (const "") g)
@
-}
......
......@@ -45,7 +45,7 @@ p1 e = do
precacheBlocks
(r:_) <- gcRoots
buildHeapGraph (Just 10) r
putStrLn (ppHeapGraph (const "") h)
putStrLn (ppHeapGraph (const "") g)
```
The API for writing debuggers is described in the `GHC.Debug.Client` module.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment