From 3d23c6b75b2bb838081166c883f5f5d89711b5c0 Mon Sep 17 00:00:00 2001 From: David Sutor Date: Fri, 31 Oct 2025 10:29:10 +0100 Subject: [PATCH] docs: fix assertion example with correct condition From the context of the text, the `assert` condition should include a field property above. --- doc/learning/tutorial.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/learning/tutorial.html b/doc/learning/tutorial.html index 17b78cb1..dd5ca7f6 100644 --- a/doc/learning/tutorial.html +++ b/doc/learning/tutorial.html @@ -493,7 +493,7 @@

Errors

  • To assert a condition before an expression: assert "foo";
  • A custom failure message: assert "foo" : "message";
  • Assert fields have a property: assert self.f == 10,
  • -
  • With custom failure message: assert "foo" : "message",
  • +
  • With custom failure message: assert self.f == 10 : "message",
  • Try modifying the code below to trigger the assertion failures, and observe the error