stacks-network / docs

Unleash Bitcoin's full potential with decentralized apps and smart contracts. The documentation covers key aspects of the Stacks network and technology and provides tutorials and other helpful content for developers.
https://docs.stacks.co
Creative Commons Zero v1.0 Universal
156 stars 235 forks source link

Bad formatting in Clarity function examples #1604

Closed csgui closed 5 months ago

csgui commented 5 months ago

Clarity functions examples has a bad formatting.

For instance, function var-set:

After changes: (define-data-var cursor int 6)(var-get cursor) ;; Returns 6(var-set cursor (+ (var-get cursor) 1)) ;; Returns true(var-get cursor) ;; Returns 7

Previously was:

(define-data-var cursor int 6)
(var-get cursor) ;; Returns 6

(var-set cursor (+ (var-get cursor) 1)) ;; Returns true
(var-get cursor) ;; Returns 7

Is it possible to have a better formatting, like previously, for function examples? Thanks!

kenrogers commented 5 months ago

Fixed by https://github.com/stacks-network/docs/pull/1605