chore(docs): fix code example
Some checks failed
test / test (push) Failing after 33s

This commit is contained in:
wqtt 2024-07-30 00:50:09 -04:00
parent b30957b0c0
commit 0983484bc0

View File

@ -25,10 +25,10 @@ pub fn main() {
pine.new() pine.new()
// You can set the level. // You can set the level.
|> pine.set_level(pine.level_info) |> pine.set_level(pine.level_info())
// As well as the format. // As well as the format.
|> pine.set_format(pine.format_json) |> pine.set_format(pine.format_json())
// And finally, the transport! // And finally, the transport!
|> pine.set_transport(pine.transport_file("logs.txt")) |> pine.set_transport(pine.transport_file("logs.txt"))
@ -69,7 +69,7 @@ pub fn main() {
// then see them all in action // then see them all in action
|> pine.info("hello world!") |> pine.info("hello world!")
// info <unix millis> hello world! version=v1.0.2 page_views=69 opacity=0.89 checked_balance=false // info <unix millis> hello world! version=v1.0.2 page_views=69 opacity=0.89 checked_balance=False
} }
``` ```