1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

readme: minor fixes

This commit is contained in:
Alexander Medvednikov 2023-02-28 09:55:57 +01:00
parent b7b6c2368e
commit d5ad96f876
2 changed files with 14 additions and 16 deletions

View File

@ -26,10 +26,10 @@
optimization)* ([demo video](https://www.youtube.com/watch?v=pvP6wmcl_Sc)) optimization)* ([demo video](https://www.youtube.com/watch?v=pvP6wmcl_Sc))
- Easy to develop: V compiles itself in less than a second - Easy to develop: V compiles itself in less than a second
- Performance: as fast as C (V's main backend compiles to human-readable C) - Performance: as fast as C (V's main backend compiles to human-readable C)
- Safety: no null, no globals, no undefined behavior, immutability by default - Safety: no null, no globals, no undefined behavior (wip), immutability by default
- C to V translation ([Translating DOOM demo video](https://www.youtube.com/watch?v=6oXrz3oRoEg)) - C to V translation ([Translating DOOM demo video](https://www.youtube.com/watch?v=6oXrz3oRoEg))
- Hot code reloading - Hot code reloading
- [Innovative memory management](https://vlang.io/#memory) ([demo video](https://www.youtube.com/watch?v=gmB8ea8uLsM)) - [Flexible memory management](https://vlang.io/#memory) ([demo video](https://www.youtube.com/watch?v=gmB8ea8uLsM))
- [Cross-platform UI library](https://github.com/vlang/ui) - [Cross-platform UI library](https://github.com/vlang/ui)
- Built-in graphics library - Built-in graphics library
- Easy cross-compilation - Easy cross-compilation

View File

@ -2717,8 +2717,6 @@ println(c()) // 3
``` ```
If you need the value to be modified outside the function, use a reference. If you need the value to be modified outside the function, use a reference.
**Warning**: _you need to make sure the reference is always valid,
otherwise this can result in undefined behavior._
```v oksyntax ```v oksyntax
mut i := 0 mut i := 0