make docs reflect the error message actually thrown

This commit is contained in:
bunnie 2021-05-06 00:41:38 +08:00
parent f975884f1e
commit fe86207469

View file

@ -1162,7 +1162,7 @@ pub fn create_server_with_sid(sid: SID) -> core::result::Result<SID, Error> {
///
/// # Errors
///
/// * **OutOfMemory**: No more servers may be created
/// * **ServerNotFound**: No more servers may be created
pub fn create_server() -> core::result::Result<SID, Error> {
let result = rsyscall(SysCall::CreateServer)?;
if let Result::NewServerID(sid, _cid) = result {