Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 authored and jinzhongjia committed Nov 1, 2024
1 parent 0cbcc95 commit 225a8b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion course/basic/define-variable.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ PS:说实话,我认为这个设计并不太好。
var z: u32 = undefined;
const x, var y, z = [3]u32{ 1, 2, 3 };
y += 10;
// x 是 1,y 是 12,z 是 3
// x 是 1,y 是 2,z 是 3
```
2 changes: 1 addition & 1 deletion course/update/upgrade-0.12.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ comptime {
var z: u32 = undefined;
const x, var y, z = [3]u32{ 1, 2, 3 };
y += 10;
// x 是 1,y 是 12,z 是 3
// x 是 1,y 是 2,z 是 3
const x, const y = @Vector(2, u32){ 1, 2 };
// 编译期的值也会进行解构,x 是 1,y 是 2
Expand Down

0 comments on commit 225a8b7

Please sign in to comment.