doccords: dprint fix depth calculation

stupid loobeans tripping me up
This commit is contained in:
drbeefsupreme 2022-04-05 14:44:47 -04:00
parent eb4b996420
commit 151608d583
No known key found for this signature in database
GPG Key ID: B70D5683DE7F9EFC

View File

@ -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