Skip to content

Commit 2cc7fe6

Browse files
committed
[core:sys/info] Fix small doc render issue
1 parent 1ba3b39 commit 2cc7fe6

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed

core/sys/info/doc.odin

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ and CPU information.
66
77
On Windows, GPUs will also be enumerated using the registry.
88
9-
CPU feature flags can be tested against `cpu_features`, where applicable, e.g.
10-
```odin
11-
if .aes in info.cpu_features() { ... }
12-
```
9+
CPU feature flags can be tested against `cpu_features`, where applicable, e.g.:
10+
`if .aes in info.cpu_features() { ... }`
1311
1412
Example:
1513
package main
@@ -47,61 +45,63 @@ Example:
4745
}
4846
}
4947
50-
- Example Windows output:
51-
52-
Odin: dev-2026-02
53-
OS (full): Windows 10 Professional (version: 22H2), build: 19045.6575
54-
OS (rel): 22H2
55-
OS: Version{major = 10, minor = 0, patch = 0}
56-
Kernel: Version{major = 10, minor = 19045, patch = 6575}
57-
CPU: AMD Ryzen 9 5950X 16-Core Processor
58-
CPU_Features{aes, adx, avx, avx2, bmi1, bmi2, erms, fma, os_xsave, pclmulqdq, popcnt, rdrand, rdseed, sha, sse2, sse3, ssse3, sse41, sse42}
59-
CPU cores: 16c/32t
60-
RAM: 32.1 GiB/63.9 GiB
61-
SWAP: 21.6 GiB/73.4 GiB
62-
63-
GPU #0:
64-
Vendor: Advanced Micro Devices, Inc.
65-
Model: AMD Radeon RX 9070
66-
VRAM: 15.9 GiB
67-
68-
- Example Linux output:
69-
70-
Odin: dev-2026-02
71-
OS (full): Ubuntu 24.04.3 LTS, Linux 6.6.87.2-microsoft-standard-WSL2
72-
OS (rel): microsoft-standard-WSL2
73-
OS: Version{major = 24, minor = 4, patch = 3}
74-
Kernel: Version{major = 6, minor = 6, patch = 87}
75-
CPU: AMD Ryzen 9 5950X 16-Core Processor
76-
CPU_Features{aes, adx, avx, avx2, bmi1, bmi2, erms, fma, os_xsave, pclmulqdq, popcnt, rdrand, rdseed, sha, sse2, sse3, ssse3, sse41, sse42}
77-
CPU cores: 16c/32t
78-
RAM: 29.2 GiB/31.3 GiB
79-
SWAP: 8.0 GiB/8.0 GiB
80-
81-
- Example macOS output:
82-
83-
Odin: dev-2026-02
84-
OS (full): macOS Tahoe 26.3.0 (build 25D125, kernel 25.3.0)
85-
OS (rel): 25D125
86-
OS: Version{major = 26, minor = 3, patch = 0}
87-
Kernel: Version{major = 25, minor = 3, patch = 0}
88-
CPU: Apple M4 Pro
89-
CPU_Features{asimd, floatingpoint, asimdhp, bf16, fcma, fhm, fp16, frint, i8mm, jscvt, rdm, flagm, flagm2, crc32, lse, lrcpc, lrcpc2, aes, pmull, sha1, sha256, sha512, sha3, sb}
90-
CPU cores: 12c/12t
91-
RAM: 0.0 B/24.0 GiB
92-
SWAP: 0.0 B/0.0 B
93-
94-
- Example FreeBSD output:
95-
96-
Odin: dev-2026-02
97-
OS (full): FreeBSD 15.0-RELEASE-p2 releng/15.0-n281005-5fb0f8e9e61d GENERIC, revision 199506
98-
OS (rel):
99-
OS: Version{major = 15, minor = 0, patch = 199506}
100-
Kernel: Version{major = 15, minor = 0, patch = 199506}
101-
CPU: AMD Ryzen 9 5950X 16-Core Processor
102-
CPU_Features{aes, fma, os_xsave, pclmulqdq, popcnt, rdrand, sse2, sse3, ssse3, sse41, sse42}
103-
RAM: 7.6 GiB/7.9 GiB
104-
SWAP: 0.0 B/0.0 B
48+
/*
49+
Example Windows output:
50+
51+
Odin: dev-2026-02
52+
OS (full): Windows 10 Professional (version: 22H2), build: 19045.6575
53+
OS (rel): 22H2
54+
OS: Version{major = 10, minor = 0, patch = 0}
55+
Kernel: Version{major = 10, minor = 19045, patch = 6575}
56+
CPU: AMD Ryzen 9 5950X 16-Core Processor
57+
CPU_Features{aes, adx, avx, avx2, bmi1, bmi2, erms, fma, os_xsave, pclmulqdq, popcnt, rdrand, rdseed, sha, sse2, sse3, ssse3, sse41, sse42}
58+
CPU cores: 16c/32t
59+
RAM: 32.1 GiB/63.9 GiB
60+
SWAP: 21.6 GiB/73.4 GiB
61+
62+
GPU #0:
63+
Vendor: Advanced Micro Devices, Inc.
64+
Model: AMD Radeon RX 9070
65+
VRAM: 15.9 GiB
66+
67+
Example Linux output:
68+
69+
Odin: dev-2026-02
70+
OS (full): Ubuntu 24.04.3 LTS, Linux 6.6.87.2-microsoft-standard-WSL2
71+
OS (rel): microsoft-standard-WSL2
72+
OS: Version{major = 24, minor = 4, patch = 3}
73+
Kernel: Version{major = 6, minor = 6, patch = 87}
74+
CPU: AMD Ryzen 9 5950X 16-Core Processor
75+
CPU_Features{aes, adx, avx, avx2, bmi1, bmi2, erms, fma, os_xsave, pclmulqdq, popcnt, rdrand, rdseed, sha, sse2, sse3, ssse3, sse41, sse42}
76+
CPU cores: 16c/32t
77+
RAM: 29.2 GiB/31.3 GiB
78+
SWAP: 8.0 GiB/8.0 GiB
79+
80+
Example macOS output:
81+
82+
Odin: dev-2026-02
83+
OS (full): macOS Tahoe 26.3.0 (build 25D125, kernel 25.3.0)
84+
OS (rel): 25D125
85+
OS: Version{major = 26, minor = 3, patch = 0}
86+
Kernel: Version{major = 25, minor = 3, patch = 0}
87+
CPU: Apple M4 Pro
88+
CPU_Features{asimd, floatingpoint, asimdhp, bf16, fcma, fhm, fp16, frint, i8mm, jscvt, rdm, flagm, flagm2, crc32, lse, lrcpc, lrcpc2, aes, pmull, sha1, sha256, sha512, sha3, sb}
89+
CPU cores: 12c/12t
90+
RAM: 0.0 B/24.0 GiB
91+
SWAP: 0.0 B/0.0 B
92+
93+
Example FreeBSD output:
94+
95+
Odin: dev-2026-02
96+
OS (full): FreeBSD 15.0-RELEASE-p2 releng/15.0-n281005-5fb0f8e9e61d GENERIC, revision 199506
97+
OS (rel):
98+
OS: Version{major = 15, minor = 0, patch = 199506}
99+
Kernel: Version{major = 15, minor = 0, patch = 199506}
100+
CPU: AMD Ryzen 9 5950X 16-Core Processor
101+
CPU_Features{aes, fma, os_xsave, pclmulqdq, popcnt, rdrand, sse2, sse3, ssse3, sse41, sse42}
102+
RAM: 7.6 GiB/7.9 GiB
103+
SWAP: 0.0 B/0.0 B
104+
*/
105105
*/
106106
package sysinfo
107107

0 commit comments

Comments
 (0)