Skip to content

Commit

Permalink
Merge pull request #4844 from Gabr1313/master
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
gingerBill authored Feb 14, 2025
2 parents 816566d + 2c7ec27 commit 04830e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/demo/demo.odin
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ or_break_and_or_continue_operators :: proc() {
// The concept of 'or_break' and 'or_continue' is very similar to that of 'or_return'.
// The difference is that unlike 'or_return', the value does not get returned from
// the current procedure but rather discarded if it is 'false' or not 'nil', and then
// the specified branch (i.e. break or_continue).
// the specified branch (i.e. break or continue).
// The or branch expression can be labelled if a specific statement needs to be used.

Error :: enum {
Expand Down Expand Up @@ -2337,7 +2337,7 @@ matrix_type :: proc() {
// There is no support for booleans, quaternions, or any compound type.

// Indexing a matrix can be used with the matrix indexing syntax
// This mirrors othe type usages: type on the left, usage on the right
// This mirrors other type usages: type on the left, usage on the right

elem := m[1, 2] // row 1, column 2
assert(elem == -6)
Expand Down Expand Up @@ -2599,6 +2599,7 @@ main :: proc() {
using_statement()
implicit_context_system()
parametric_polymorphism()
threading_example()
array_programming()
map_type()
implicit_selector_expression()
Expand All @@ -2614,7 +2615,6 @@ main :: proc() {
ranged_fields_for_array_compound_literals()
deprecated_attribute()
range_statements_with_multiple_return_values()
threading_example()
soa_struct_layout()
constant_literal_expressions()
union_maybe()
Expand Down

0 comments on commit 04830e9

Please sign in to comment.