mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-02 20:15:27 +03:00
doccords: dprint fix depth calculation
stupid loobeans tripping me up
This commit is contained in:
parent
eb4b996420
commit
151608d583
@ -323,12 +323,11 @@
|
||||
=+ hoon-type=(~(play ut sut) gen)
|
||||
=+ arm-prod=(arm-product-docs hoon-type name)
|
||||
~? >> debug arm-prod
|
||||
^- [what what what]
|
||||
|^
|
||||
:: use arm-prod to determine how many layers to look into the type
|
||||
:: check arm-prod to determine how many layers to look into the type
|
||||
:: for core docs
|
||||
=/ depth=@ (add !=(~ +<.arm-prod) !=(~ +>.arm-prod))
|
||||
^- [what what what]
|
||||
=/ depth=@ ?~ arm-prod 0
|
||||
(add =(~ +<.arm-prod) =(~ +>.arm-prod))
|
||||
?+ depth [~ ~ ~]
|
||||
%0 [~ ~ (check-core hoon-type)]
|
||||
%1 :+ +<.arm-prod
|
||||
|
Loading…
Reference in New Issue
Block a user