Skip to content

Commit

Permalink
Fix doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
colinkiama committed May 5, 2024
1 parent 62ed8f6 commit 2e9fffa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ To return a struct directly, the question mark operator will box it, and make it
foo *get_foo(int x);
int make_foo(int y, foo **f);
The ownership rules in :doc:``05-02-ownership`` apply.
The ownership rules in :doc:`05-02-ownership` apply.

Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ It is often the case that a function will return one of its input values, partic

Often C programmers will mark return values as const when they are unowned.

See also: :doc:`10-00-awkward-situations/10-02-dependently-typed-ownership`.
See also: :doc:`../10-00-awkward-situations/10-02-dependently-typed-ownership`.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Vala has better information than the C compiler, so it knows certain things are

Unfortunately we can't just add casts everywhere since there are situations where we can't generate a valid cast (and, what's more, no way to know what those situations are).

For example, compiling the :doc:`Hello World program </../01-00-first-program>` will give us some warnings because ``valac`` by default generates code which is compatible with older versions of the ``GLib``.Some methods may have been deprecated in your new version of GLib so that C language compiler will warn you.
For example, compiling the :doc:`Hello World program <../01-00-first-program>` will give us some warnings because ``valac`` by default generates code which is compatible with older versions of the ``GLib``.Some methods may have been deprecated in your new version of GLib so that C language compiler will warn you.

Imagine a machine with older glib version want to run your vala program!

Expand Down

0 comments on commit 2e9fffa

Please sign in to comment.