Invalid format in note blocks #8

Closed
opened 2025-03-12 19:57:12 +00:00 by owochle · 0 comments

```note
Slices (`[T]`) represent some memory space containing an arbitrary number of elements of type `T`. Since they don't have a size known at compilation time, we can only access them through pointers, commonly `&[T]` (references to slices).
```
```deepening
`Vec<T>` can be seen as [owned](https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html) `[T]`, it means that every function working on a `&[T]` can work on a `&Vec<T>`.
```

Format:

> ## <type>
> <text>

Example:

> ## deepening
> `Vec<T>` can be seen as [owned](https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html) `[T]`, it means that every function working on a `&[T]` can work on a `&Vec<T>`.
https://gitea.lilymonade.fr/lilymonade/exowos/src/commit/c52caca8449c5fa0a83bcca522f7f31370166623/subject_text/vec/index.md?display=source#L9-L15 Format: ``` > ## <type> > <text> ``` Example: ``` > ## deepening > `Vec<T>` can be seen as [owned](https://doc.rust-lang.org/book/ch04-00-understanding-ownership.html) `[T]`, it means that every function working on a `&[T]` can work on a `&Vec<T>`. ```
lilymonade referenced this issue from a commit 2025-03-14 22:13:54 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilymonade/exowos#8
No description provided.