Skip to content

Commit

Permalink
Merge pull request JuliaLang#40926 from serenity4/patch-1
Browse files Browse the repository at this point in the history
Fix documentation snippet
  • Loading branch information
quinnj authored May 24, 2021
2 parents e110029 + 7429cb7 commit 0d97578
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/src/devdocs/inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ m = first(mths)
interp = Core.Compiler.NativeInterpreter()
sparams = Core.svec() # this particular method doesn't have type-parameters
optimize = true # run all inference optimizations
cached = false # force inference to happen (do not use cached results)
types = Tuple{typeof(convert), atypes.parameters...} # Tuple{typeof(convert), Type{Int}, UInt}
Core.Compiler.typeinf_code(interp, types, sparams, optimize, cached)
Core.Compiler.typeinf_code(interp, m, types, sparams, optimize)
```

If your debugging adventures require a `MethodInstance`, you can look it up by
Expand Down

0 comments on commit 0d97578

Please sign in to comment.