mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
bad char instead of minus
This commit is contained in:
parent
33f832e090
commit
5a449f4bd8
|
@ -10712,7 +10712,7 @@ Pointers should only refer to single objects, and pointer arithmetic is fragile
|
|||
|
||||
a[4] = 1; // OK
|
||||
|
||||
a[count – 1] = 2; // OK
|
||||
a[count - 1] = 2; // OK
|
||||
|
||||
use(a.data(), 3); // OK
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user