Skip to content

Commit b0ab474

Browse files
committed
Note that non-canonical addresses give a panic
Signed-off-by: Joe Richey <[email protected]>
1 parent a81714b commit b0ab474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instructions/segmentation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ pub fn cs() -> SegmentSelector {
266266
}
267267
/// Alias for [`FS::write_base()`].
268268
///
269-
/// Raises #GP if the provided address is non-canonical.
269+
/// Panics if the provided address is non-canonical.
270270
#[deprecated(since = "0.14.4", note = "use `FS::write_base()` instead")]
271271
#[allow(clippy::missing_safety_doc)]
272272
#[inline]
@@ -282,7 +282,7 @@ pub unsafe fn rdfsbase() -> u64 {
282282
}
283283
/// Alias for [`GS::write_base()`].
284284
///
285-
/// Raises #GP if the provided address is non-canonical.
285+
/// Panics if the provided address is non-canonical.
286286
#[deprecated(since = "0.14.4", note = "use `GS::write_base()` instead")]
287287
#[allow(clippy::missing_safety_doc)]
288288
#[inline]

0 commit comments

Comments
 (0)